meepo的博客
12
登录
注册
首页
产品列表
动态
留言
thinkphp记录
2017-03-01 10:15:00
1147533288
1419
原创
1.where条件查询(数组条件与字符串条件混用)
$User= M("User");// 实例化User对象
$map['id'] =array('neq',1);
$map['name'] ='ok';
$map['_string'] ='status=1 AND score>10';
$User->where($map)->select();
© Design by Meepo
苏ICP备18038013号-1
蝉知
蝉知
5.2