auto commit
This commit is contained in:
parent
83e13ca816
commit
e6c3bf024a
|
@ -483,7 +483,7 @@ FROM tablea AS A NATURAL JOIN tableb AS B;
|
||||||
检索所有顾客的订单信息,包括还没有订单信息的顾客。
|
检索所有顾客的订单信息,包括还没有订单信息的顾客。
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT Customers.cust_id, Orders.order_num
|
SELECT Customers.cust_id, Customer.cust_name, Orders.order_id
|
||||||
FROM Customers LEFT OUTER JOIN Orders
|
FROM Customers LEFT OUTER JOIN Orders
|
||||||
ON Customers.cust_id = Orders.cust_id;
|
ON Customers.cust_id = Orders.cust_id;
|
||||||
```
|
```
|
||||||
|
|
|
@ -483,7 +483,7 @@ FROM tablea AS A NATURAL JOIN tableb AS B;
|
||||||
检索所有顾客的订单信息,包括还没有订单信息的顾客。
|
检索所有顾客的订单信息,包括还没有订单信息的顾客。
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
SELECT Customers.cust_id, Orders.order_num
|
SELECT Customers.cust_id, Customer.cust_name, Orders.order_id
|
||||||
FROM Customers LEFT OUTER JOIN Orders
|
FROM Customers LEFT OUTER JOIN Orders
|
||||||
ON Customers.cust_id = Orders.cust_id;
|
ON Customers.cust_id = Orders.cust_id;
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user