阅读(4839)
赞(20)
Laravel 8 执行 Update 语句
2021-07-06 17:45:05 更新
update 方法用于更新数据库中现有的记录。该方法返回该执行语句影响的行数:
$affected = DB::update('update users set votes = 100 where name = ?', ['John']); update 方法用于更新数据库中现有的记录。该方法返回该执行语句影响的行数:
$affected = DB::update('update users set votes = 100 where name = ?', ['John']);