www.7859.net > thinkphp5 sAvEAll

thinkphp5 sAvEAll

update()就可以 直接放数组,但是下标要和数据库对的上比如 $data = [ 'username'=>'zhang', 'sex'=>'nv' ]; Db:table('user_info')->where('username','wang')->update($data);

网站地图

All rights reserved Powered by www.7859.net

copyright ©right 2010-2021。
www.7859.net内容来自网络,如有侵犯请联系客服。zhit325@qq.com