1 语法:
$this->db->join('table2','table2.col1 = table1.col2','join的类型') 其中第三个参数是可选参数,该参数的值有:left,right,outer,inner,left,outer,left outer,right outer
2 使用:
如果想要在查询中使用多个连接,可以多次调用 $this->db->join()
3 示例:
1 语法:
$this->db->join('table2','table2.col1 = table1.col2','join的类型') 其中第三个参数是可选参数,该参数的值有:left,right,outer,inner,left,outer,left outer,right outer
2 使用:
如果想要在查询中使用多个连接,可以多次调用 $this->db->join()
3 示例:
转载于:https://my.oschina.net/syc2013/blog/130974