Home > Database > Mysql Tutorial > CodeIgniter之Model查询语句之$this->db->join(

CodeIgniter之Model查询语句之$this->db->join(

WBOY
Release: 2016-06-07 16:14:40
Original
1047 people have browsed it

1 语法 : $this-db-join('table2','table2.col1 = table1.col2','join的类型') 其中第三个参数是可选参数,该参数的值有:left,right,outer,inner,left,outer,left outer,right outer 2 使用 : 如果想要在查询中使用多个连接,可以多次调用 $this-db-join(

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 示例

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template