登录注册

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 12</a>

2022-08-02 09:45:56

匿名

buy tadalafil 5mg <a href="https://levofloxacinl.com/">order levofloxacin 250mg online cheap</a> avodart cheap

2022-08-02 06:40:21

匿名

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

2022-08-02 06:26:49

匿名

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

2022-08-02 03:04:49

匿名

<a href=https://stromectolxlp.com/>stromectol oral</a>

2022-08-01 23:25:19