JOIN
语句来关联两个表并查询数据。,,``sql,SELECT a.column1, b.column2,FROM table1 a,JOIN table2 b ON a.common_column = b.common_column;,
`,,这段 SQL 代码将
table1 和
table2 通过共同的列
common_column 进行连接,并选择
table1 的
column1 和
table2 的
column2` 进行输出。Powered By Z-BlogPHP 1.7.3
Copyright Your WebSite.Some Rights Reserved.