CI数据库查询辅助函数
select username from ci_user where id = '1'这个sql语句在CI里有什么查询辅助函数可以简化吗?,我不想写这么长.. $this->select('username')->get_where('ci_user',array('id'=>1)); Aloghli 发表于 2016-3-4 10:32
$this->select('username')->get_where('ci_user',array('id'=>1));
谢谢!另外你是不是少打了db... $this->db->select() 霸道的温柔 发表于 2016-3-4 10:51
谢谢!另外你是不是少打了db... $this->db->select()
对少了db
页:
[1]