ThinkPHP3.2.3的[NOT] IN: 同sql的[not] in查询表达式:
查询条件支持字符串或者数组,例如:
$map['id'] = array('not in','1,5,8');
和下面的等效:
$map['id'] = array('not in',array('1','5','8'));
查询条件就变成 id NOT IN (1,5, 8)
$map['id'] = array('not in',array('1','5','8')); $User->where($map)->select();