mysql内连接外连接
时间: 2023-08-27 12:15:10 浏览: 101
引用中提到了多表查询的分类,其中包括内连接和外连接。内连接也称为等值连接,它只返回两个表中键值匹配的行,即只有在两个表中都有匹配的数据时才会返回。内连接的语法如下:
```sql
SELECT column FROM table1 INNER JOIN table2 ON table1.column = table2.column;
```
这里的`table1`和`table2`是要连接的两个表,`column`是用于连接的列名。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【MySQL】MySQL内连接和外连接详细总结](https://blog.csdn.net/Sihang_Xie/article/details/125571345)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [Mysql内连接外连接](https://blog.csdn.net/m0_71163619/article/details/131400534)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文