1、字段为空
查询name字段为空
$where = array('name'=>array('exp', 'is null'));
$where['name'] = array('exp', 'is null'); //为空的
$where['name'] = array('exp', 'is not null'); //不为空的
2、where条件and or
$where['status '] = array(2,3, 'or');
$map['id'] = array(array('gt',3),array('lt',10), 'or') ;