指定模型::find()
->andWhere(['!=','keyword',''])
->andWhere(['is not','keyword',null])
->andWhere(['!=','keyword','*'])
->All();
博客列表 >yii2 where多条件查询
指定模型::find()
->andWhere(['!=','keyword',''])
->andWhere(['is not','keyword',null])
->andWhere(['!=','keyword','*'])
->All();