博客列表 >yii2 where多条件查询

yii2 where多条件查询

dxp2tq的博客
dxp2tq的博客原创
2019年01月30日 09:46:524374浏览

指定模型::find()
    ->andWhere(['!=','keyword',''])
    ->andWhere(['is not','keyword',null])
    ->andWhere(['!=','keyword','*'])
    ->All();

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议