Answer the question
In order to leave comments, you need to log in
How to create an is not null query in yii2?
Hello! I create a request like this:
$dr = TableName::find()->joinWith('idTb')
->where(['is not', 'Date_end', null])
->all();
Answer the question
In order to leave comments, you need to log in
$query = new Query;
$query->select('ID, City,State,StudentName')
->from('student')
->where(['IsActive' => 1])
->andWhere(['not', ['City' => null]])
->andWhere(['not', ['State' => null]])
->orderBy(['rand()' => SORT_DESC])
->limit(10);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question