作者:ab5212502902861 | 来源:互联网 | 2017-05-13 02:14
groupbyleft(ctime,10)用ci写就是$this->db->group_by('left(ctime,10)');但是最后执行的sql语句是GROUPBYleft(o.ctime,10)因为引号的位置会报错有解决方案吗?
group by left(ctime,10) 用ci写就是
$this->db->group_by('left(ctime,10)');
但是最后执行的sql语句是GROUP BY left(o.ctime, 10)
因为引号的位置会报错
有解决方案吗?
回复内容:
group by left(ctime,10) 用ci写就是
$this->db->group_by('left(ctime,10)');
但是最后执行的sql语句是GROUP BY left(o.ctime, 10)
因为引号的位置会报错
有解决方案吗?