登录注册

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

发表评论

评论列表

匿名

tretinoin ca <a href="https://buytretinoinp.com/">order retin without prescription</a> order avana 200mg generic

2023-02-05 11:28:49

匿名

Hello! <a href=http://xlonlinepharmacy.site/>tramadol online pharmacy</a> india pharmacy online

2023-02-05 09:23:45

匿名

Hi there! <a href=http://valtrexrp.online/>buy valtrex online without prescription</a> valtrex 100mg

2023-02-04 21:52:42

匿名

Hello! <a href=http://valtrexrp.online/>buy valtrex pills online</a> valtrex cheap

2023-02-04 15:23:35

匿名

Hi there! <a href=http://valtrexrp.online/>buy valtrex pills online</a> buy valtrex online without prescription

2023-02-04 08:50:18