开发者

Yii condition <IS NULL>

开发者 https://www.devze.com 2023-02-18 02:52 出处:网络
How to find row by column with null value? It doesn\'t work: $criteria->condition = \'`se开发者_开发百科ller_id` IS NULL\';

How to find row by column with null value?

It doesn't work:

$criteria->condition = '`se开发者_开发百科ller_id` IS NULL';


$criteria->addCondition('seller_id IS NULL');
$data= MODEL::model()->find($criteria);

tried this? **seller_id** is the mapped column name in Yii, it may not be same as the actual column name in your database.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号