一、IN
[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)
二、选择多个特定字段的查询
$res = $model->where($where)->field('isTalent,isAngel,isAgency')->find();
选择一个字段的查询
$res = $model->where($where)->getField('isTalent');
三、ThinkPHP函数详解:L方法
$langVar = L('LANG_VAR');
参考:http://www.thinkphp.cn/document/148.html