风飞飞飞
风飞飞飞
全部文章
题解
归档
标签
去牛客网
登录
/
注册
风飞飞飞的博客
全部文章
/ 题解
(共57篇)
题解 | SQL7#检查SQL语句#
分析 关键词:select,order 用法: select [列名1],[列名2],...,[列名n] from order by [列名1]asc/desc,[列名2]asc/desc,... 代码 SELECT vend_name FROM Vendors ORDER by vend_n...
Mysql
2022-03-04
1
518
题解 |SQL6 #按照数量和价格排序#
分析 关键词:order 多行排序:order by [列名1],[列名2],... 排序规则:asc---升序,desc---降序 代码 select quantity,item_price from OrderItems order by quantity desc,item_price des...
Mysql
2022-03-04
0
402
题解 | SQL5#对顾客ID和日期排序#
分析 关键词:order 多列排序:order by 列名1,[列名2],[列名3],... 代码 select cust_id,order_num from Orders order by cust_id asc,order_date desc
Mysql
2022-03-04
7
618
题解 | SQL4#仅检索顾客的ID#
分析 关键词:order 排序(升序/降序):order by [列名] asc/desc 代码 select cust_name from Customers order by cust_name desc
Mysql
2022-03-04
0
830
题解 | SQL3#仅检索顾客的ID#
分析 关键词:select 搜索所有列:select * from [table] 注释方法:\ 单行---使用符号[--]或者[#] 多行---使用符号[/.../] 代码 select * from Customers -- 仅检索顾客ID # 另一种注释方法 /* 多行注释方法 sele...
Mysql
2022-03-04
5
1585
题解 | SQL2 检索并列出已订购产品的清单
思路 关键字:distinct 搜索去重:select distinct [列名1,列名2,...] from [表名] 代码\ select distinct prod_id from OrderItems
Mysql
2022-03-04
64
2513
题解 | SQL1 从 Customers 表中检索所有的 ID
思路 关键词:select 检索单个列:select [列名] from [表名] 代码\ select cust_id from Customers
Mysql
2022-03-04
12
1866
首页
上一页
1
2
3
4
5
6
下一页
末页