Skip to content

Commit

Permalink
doc: update docs/21-minutes-MySQL-basic-entry.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed May 1, 2022
1 parent 137b2da commit 060dc36
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/21-minutes-MySQL-basic-entry.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,7 @@ INNER JOIN Shippers ON Orders.ShipperID = Shippers.ShipperID);
```sql
-- 将选择所有 Customers 以及他们可能拥有的任何 Orders:
SELECT Customers.CustomerName, Orders.OrderID
FROM Customers
SELECT Customers.CustomerName, Orders.OrderID FROM Customers
LEFT JOIN Orders ON Customers.CustomerID = Orders.CustomerID
ORDER BY Customers.CustomerName;
```
Expand All @@ -503,6 +502,13 @@ ORDER BY Customers.CustomerName;
> ON 表1.列名称 =2.列名称;
> ```
```sql
-- 返回所有 Employees 以及他们可能下的任何 Orders:
SELECT Orders.OrderID, Employees.LastName, Employees.FirstName FROM Orders
RIGHT JOIN Employees ON Orders.EmployeeID = Employees.EmployeeID
ORDER BY Orders.OrderID;
```
### FULL OUTER JOIN
> `FULL OUTER JOIN 语法` 当左(表1)或右(表2)表记录中存在匹配时,关键字返回所有记录
Expand Down

0 comments on commit 060dc36

Please sign in to comment.