【发布时间】:2014-10-24 02:06:50
【问题描述】:
我正在使用 CodeIgniter 根据 1 列的字符串长度是否大于 1 从 MySQL 表中选择数据。
代码:
$this->db->order_by('time_stamp', 'desc');
$this->db->where('strlen(user_categrory)>1');//I know this code does not work but that's what I wanted to achieve
$data['record']=$this->db->select('username, user_category, email, source, status, test_group, time_stamp, referrer_email')->get('user');
关于如何完成这项工作的任何建议?非常感谢。
【问题讨论】:
标签: php mysql codeigniter