1、同时增加几个字段的数量

DB::table('project')
        ->where('id',$yewuid)
        ->increment('count', 1, [
            'click'=>DB::raw('realclick + 1')
        ]);

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2021-11-23
  • 2021-10-16
  • 2021-05-26
猜你喜欢
  • 2021-12-10
  • 2022-02-26
  • 2021-08-06
  • 2021-06-20
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案