📌  相关文章
📜  如何在 codeigniter 中使用连接查询 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:57.906000             🧑  作者: Mango

代码示例1
public function getdata(){    

    $this->db->select('*');
    $this->db->from('table1'); // this is first table name
    $this->db->join('table2', 'table2.id = table1.id'); // this is second table name with both table ids
    $query = $this->db->get();
    return $query->result();

    }