From 2124b54d731506dd4453cd510ac4f166f3c31380 Mon Sep 17 00:00:00 2001 From: Misaka Date: Thu, 16 Mar 2023 14:51:00 +0800 Subject: [PATCH] Update sql-questions-01.md --- docs/database/sql/sql-questions-01.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/database/sql/sql-questions-01.md b/docs/database/sql/sql-questions-01.md index d5ef9414..b3940218 100644 --- a/docs/database/sql/sql-questions-01.md +++ b/docs/database/sql/sql-questions-01.md @@ -1292,13 +1292,13 @@ order by c.cust_name; select c.cust_name, o.order_num from Customers c, Orders o where c.cust_id = o.cust_id -order by c.cust_name; +order by c.cust_name,o.order_num; # 显式内连接 select c.cust_name, o.order_num from Customers c inner join Orders o using(cust_id) -order by c.cust_name; +order by c.cust_name,o.order_num; ``` ### 返回顾客名称和相关订单号以及每个订单的总价