thinkphp的model的where条件的两种形式
thinkphp的model的where查询时有两种形式。
$model->field('id')->where('customer_num is null or customer_num=""')->select();
$map['pid']=$ss;
$map['type']=$s1;
$list=$Region->field('id')->where($map)->select();
posted on 2015-03-18 14:23 liuwenbohhh 阅读(2221) 评论(0) 编辑 收藏 举报