0
点赞
收藏
分享

微信扫一扫

Thinkphp5 查询字段不为空 数组写法

晒大太阳了 2022-08-22 阅读 58
编程语言


$filter['field'] = ['neq','not null']; //不为空
$filter['field'] = null; //null
或者
$filter[''] = [Db::raw('field IS NULL')]
$filter[''] = [Db::raw('field IS NOT NULL')]

 

举报

相关推荐

0 条评论