登录注册

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);

发表评论

评论列表

匿名

With thanks, Useful information. <a href="https://inderalrxlist.com/">inderal la</a>

2020-01-21 23:28:11

匿名

Terrific knowledge. Appreciate it. <a href="https://buy-online-cephalexin.com/">cephalexin 500 mg for dogs</a> <a href="https://canadianonlinepharmacytrust.com/">canadian pharmacies-24h</a>

2020-01-21 22:46:06

匿名

Regards. Fantastic information! <a href=https://ciaonlinebuymsn.com/>north west pharmacy canada</a>

2020-01-21 22:34:56

匿名

You actually stated it very well. <a href="https://rxdiflucan.com/">diflucan</a> <a href="https://canadianpharmacycom.com/">viagra from canada</a> <a href="https://amoxicillincaamoxil.com/">amoxicilline</a> <a href="https://bactrimprice.com/">generic bactrim</a> <a href="https://celexa-overnight.com/">citalopram 20 mg</a>

2020-01-21 22:10:49

匿名

Amazing information. Kudos! <a href="https://celexa-today.com/">citalopram medication</a>

2020-01-21 20:12:48