2012-05-08 41 views
0

笨選擇數據我一直在使用這個模型得到datafrom只有一個表從多個表

function model_employee_all() 
{ 
    $this->load->database(); 
    $query = $this->db->get('mytable1'); 
    return $query->result(); 
} 

我應該如何配置它來獲得多個表,如MYTABLE1和mytable2數據中,有什麼辦法使用加入...

謝謝。

+0

試試這個http://stackoverflow.com/questions/2774538/codeigniter-select-from-multiple-tables – Gopesh

回答