$num = 1;// 字段加一
$num = 1-; // 字段减一
Model::updateAllCounters(['nums' => $num],['id' => 1]);
转载于:https://my.oschina.net/hongjiang/blog/3061127
$num = 1;// 字段加一
$num = 1-; // 字段减一
Model::updateAllCounters(['nums' => $num],['id' => 1]);
转载于:https://my.oschina.net/hongjiang/blog/3061127