laravel DB 更新语句
xuexi 2025-09-17 17:24:24 发表在:PHP 查看数:749
use Illuminate\Support\Facades\DB;

DB::table('users')->where('id', 1)->update(['name' => '新名字', 'email' => 'newemail@example.com']);
最近访问时间:2026-05-17 05:46:19
知识库:456条鸣谢:TAY  备案号:蜀ICP备2024090044号