登录注册

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://cialisle.com/">cialis online no prescription</a>

2020-06-24 19:37:52

匿名

<a href="https://clomidweb.com/">clomid 50 mg</a>

2020-06-08 13:55:05

匿名

f picture [url=https://calis24.com/#]buy cialis[/url] buy cialis cheap cialis online insist https://calis24.com/

2020-06-02 02:05:39

匿名

Crawlergo

2020-05-30 09:27:29

匿名

Crawlergo

2020-05-30 09:27:29