登录注册

18250178511

laravel递增或者递减

作者:admin      时间:2019-11-04 10:59:23

//递增
User::where(['id'=>1])->increment('stock');
//指定增量
User::where(['id'=>1])->increment('stock',2);
//递减
User::where(['id'=>1])->decrement('stock');
//指定减量
User::where(['id'=>1])->decrement('stock',3);

发表评论

评论列表

匿名

<a href=http://canadianxldrugstore.com/>accredited online pharmacy technician programs</a>

2022-08-03 15:03:39

匿名

buy ranitidine without prescription <a href="https://meloxicamp.com/">order meloxicam 7.5mg pills</a> oral tamsulosin 0.2mg

2022-08-03 13:20:51

匿名

<a href=http://canadianxldrugstore.com/>legal online pharmacy</a>

2022-08-03 11:58:39

匿名

<a href=http://canadianxldrugstore.com/>online pharmacy usa</a>

2022-08-03 08:53:33

匿名

<a href=https://stromectolxlp.com/>ivermectin 1% cream generic</a>

2022-08-03 06:34:54