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

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