PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
- $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);
转载请注明:谷谷点程序 » yii2判断数据库字段is null