Files
MySQL-Study/数据库5.4.md
2025-11-14 13:25:18 +08:00

27 lines
584 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 一、连接查询的类型
1. 交叉连接
2. **内连接**MySQL中常用
3. 左外连接
4. 右外连接
5. 全外连接
# 二、内连接
1. SQL标准中规定的语法**重点**
```sql
select
from 1,[inner] join 2 on [······]
[where ];
```
2. 传统用法:
```sql
select
from 1, 2[, ······]
where ;
```
# 三、左外连接
语法:
```sql
select
from 1, left [outer] join 2 on [······]
[where ];
```