登录注册

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=https://molnupiravir.site/>can you buy Movfor in mexico</a>

2022-08-05 11:07:20

匿名

ondansetron for sale <a href="https://zofrapl.com/">ondansetron 8mg us</a> propecia without prescription

2022-08-04 19:55:02

匿名

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

2022-08-04 15:41:28

匿名

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

2022-08-04 12:36:40

匿名

<a href=http://canadianxldrugstore.com/>canadian drugs</a>

2022-08-04 09:31:11