自增
//所有数据的deptno字段自动加1
$ceshi=DB::table('wps_ceshi')->increment('deptno');
//deptno字段自动加1
$ceshi=DB::table('wps_ceshi')->where('id',21)->increment('deptno');
//deptno字段自动加10
$ceshi=DB::table('wps_ceshi')->where('id',21)->increment('deptno',10);
自减
//所有数据的deptno字段自动减1
$ceshi=DB::table('wps_ceshi')->decrement('deptno');
//deptno字段自动减1
$ceshi=DB::table('wps_ceshi')->where('id',21)->decrement('deptno');
//deptno字段自动减10
$ceshi=DB::table('wps_ceshi')->where('id',21)->decrement('deptno',10);