Home >Database >Mysql Tutorial >MySQL ON 子句和 USING 子句

MySQL ON 子句和 USING 子句

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:16:331200browse

Mysql 中联接 SQL 语句中,ON 子句的语法格式为:table1.column_name = table2.column_name。当模式设计对联接表的列采用了相同的

Mysql 中联接 SQL 语句中,,ON 子句的语法格式为:table1.column_name = table2.column_name。

当模式设计对联接表的列采用了相同的命名样式时,就可以使用 USING 语法来简化 ON 语法,格式为:USING(column_name)。

例如:

等价于

linux

Statement:
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