thinkPhp不为空查询

$filter['查询的字段']=array('NEQ',' ');注意:引号里是一个空格

也可以$filter['查询的字段']=array('exp','is not null');

->where($filter)->select()

posted on 2017-07-24 16:14  编程是个无底洞  阅读(1011)  评论(0编辑  收藏  举报

导航