登录注册

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

发表评论

评论列表

匿名

Hello! <a href=http://buyeddrugx.shop/>online canadian pharmacies</a> excellent web page http://buyeddrugx.shop

2022-09-29 12:16:26

匿名

Howdy! <a href=http://buyeddrugx.shop/>cvs pharmacy apply online</a> good internet site http://buyeddrugx.shop

2022-09-29 08:55:32

匿名

Hi there! <a href=http://xlppharm.com/>canada pharmacy no prescription needed</a> excellent website http://xlppharm.com

2022-09-29 02:00:41

匿名

Howdy! <a href=http://xlppharm.com/>pharmacy technician online course</a> great website http://xlppharm.com

2022-09-28 21:14:46

匿名

Hello there! <a href=http://xlppharm.com/>best online pharmacy no prescription</a> great web page http://xlppharm.com

2022-09-28 16:23:47