|
使用$this->db->where('id<=',2);出现错误.
我的代码如下:
$this->db->from('register');
$this->db->where('id<=',2);
$query = $this->db->get();
echo $this->db->last_query();
出现的错误是:
Error Number:
ERROR: syntax error at or near "2" LINE 3: WHERE "id<=" 2 ^
SELECT * FROM "register" WHERE "id<=" 2
为什么给我解析成WHERE "id<=" 2这个样子???
求高手帮助!
|
|