thinkphp记录

2017-03-01 10:15:00
1147533288
原创
1420

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


文章分类
联系我
联系人: meepo
电话: *****
Email: 1147533288@qq.com
QQ: 1147533288