返回bool类型(受影响行数)
$insertboll=DB::table('student')
->where('id',1001)
->update(['age'=>30]);
increment自增3(默认1)
$increment=DB::table('student')
->where('id',1001)
->increment('age',3);
decrement自减3(默认1)
$decrement=DB::table('student')
->where('id',1001)
->decrement('age',3);
自增/减同时修改
$decrement = DB::table('student')
->where('id',1)
->decrement('age',3,['name'=>'nmsl']);