码迷,mamicode.com
首页 >  
搜索关键字:thinkphp-where-数组条件-普通查询    ( 1个结果
thinkphp-where-数组条件-普通查询
语法Db::table(表名)->where(条件)->select();示例$map[‘name‘]=‘thinkphp‘; $map[‘status‘]=1; //把查询条件传入查询方法 Db::table(‘think_user‘)->where($map)->select();对应原始sqlSELECT*FROMthink_userWHERE`name`=‘thinkphp‘ANDstatus=1
分类:编程语言   时间:2017-02-10 00:12:39    阅读次数:214
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!