登录注册

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://stromectolxlp.com/>ivermectin buy</a>

2022-08-03 03:07:14

匿名

<a href=https://stromectolxlp.com/>where to buy ivermectin pills</a>

2022-08-02 23:41:31

匿名

<a href=https://stromectolxlp.com/>buy stromectol online uk</a>

2022-08-02 20:10:47

匿名

<a href=https://stromectolxlp.com/>buy ivermectin</a>

2022-08-02 16:41:27

匿名

<a href=https://stromectolxlp.com/>ivermectin 2ml</a>

2022-08-02 13:10:27