1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-08-14 05:21:42 +08:00

Compare commits

..

No commits in common. "5780c46f3ce46f62b38536a5e533aef9fdcecb07" and "f7f434d0c10df13cd0dd80204e7b2ee98c0bf03d" have entirely different histories.

View File

@ -1292,13 +1292,13 @@ order by c.cust_name;
select c.cust_name, o.order_num select c.cust_name, o.order_num
from Customers c, Orders o from Customers c, Orders o
where c.cust_id = o.cust_id where c.cust_id = o.cust_id
order by c.cust_name,o.order_num; order by c.cust_name;
# 显式内连接 # 显式内连接
select c.cust_name, o.order_num select c.cust_name, o.order_num
from Customers c inner join Orders o from Customers c inner join Orders o
using(cust_id) using(cust_id)
order by c.cust_name,o.order_num; order by c.cust_name;
``` ```
### 返回顾客名称和相关订单号以及每个订单的总价 ### 返回顾客名称和相关订单号以及每个订单的总价