怎么$this->db-xx 实现 where a > x 这种查询呢?
如 seletct * from table where id > 100011 的查询,用CI的model mysql 怎么写不感觉这个基础得不能再基础了。
以你这种问法,要问的太多了。
踏实去看看基础教程和手册吧 本帖最后由 永恒forever 于 2013-10-31 09:57 编辑
user_guide 里面 database 类 讲得很清除。
$this->db->where(array(
'age >'=> 20,
'name !=' => 'forever'
))->get('table_name');
将会生成语句 SELECT * FROM table_name WHERE age > 20 AND name != 'forever'。
供参考
页:
[1]