Мне интересно, хочу ли я написать запрос таким: < /p>
Код: Выделить всё
Select * from table1, table2
where table1.id = table2.id
< /code>
Я попробовал это: < /p>
$where = array("table1.id" => "table2.id");
$query = $this->db->get_where("table1, table2" , $where);
return $query->result();
< /code>
Но это дает мне ошибку, потому что она составлена как: < /p>
select * from table1, table2
where table1.id = 'table2.id'
Подробнее здесь: https://stackoverflow.com/questions/350 ... n1-column2