DB : Informix
컬럼에도 ' 가 붙게 되어 Syntax Error가 납니다.
어떻게 해결해야 할지 조언부탁드려요 ㅠㅠ
$this->db->select()->from('table')->where(array('col1'=>1, 'col2' => 'A'),Null,FALSE);
// 예상쿼리 결과
// select * from table where col1 = 1 and col2 = 'A'
// 실제쿼리 결과
// select * from table where 'col1' = '1' and 'col2' = 'A'
$this->db->select()->from('table')->where(array('col1'=>1, 'col2' => 'A'),Null,FALSE);
// 실제쿼리 결과
// select * from table where col1 = 1 and col2 = A
$this->db->where('col1', 1);
where을 2번쓰면 어떨까요?$this->db->where('col2', 'A');
저도 입문한지 얼마안되서 결과는 잘 모르겠내요