select 类别, sum(数量) as 数量之和 from A group by 类别
select 类别, sum(数量) AS 数量之和 from A group by 类别 order by sum(数量) desc
select 类别, sum(数量) as 数量之和, 摘要 from A group by 类别 order by 类别 desc
select 类别, 摘要, sum(数量) as 数量之和 from A group by all 类别, 摘要
select 类别, 摘要, sum(数量) AS 数量之和 from A group by 类别, 摘要
| 函数 | 作用 | 支持性 |
|---|---|---|
| sum(列名) | 求和 | |
| max(列名) | 最大值 | |
| min(列名) | 最小值 | |
| avg(列名) | 平均值 | |
| first(列名) | 第一条记录 | 仅Access支持 |
| last(列名) | 最后一条记录 | 仅Access支持 |
| count(列名) | 统计记录数 | 注意和count(*)的区别 |
select 类别, avg(数量) AS 平均值 from A group by 类别;
select 类别, count(*) AS 记录数 from A group by 类别;
select 类别, sum(数量) as 数量之和 from A group by 类别 having sum(数量) > 18
select 类别, SUM(数量)from A where 数量 gt;8 group by 类别 having SUM(数量) gt; 10
select * from A where 数量 > 8
select * from A where 数量>8 compute max(数量),min(数量),avg(数量)
select * from A where 数量>8 order by 类别 compute max(数量),min(数量),avg(数量) by 类别
韩剧再婚皇后阿里云盘全集高清1080P资源链接-韩剧再婚皇后免费阿里云盘资源下载4K高清无删减版链接
poipiku网站如何打开-poipiku官网网页版访问入口
明日方舟:终末地-云游戏畅玩入口-明日方舟:终末地-网页版在线直连地址
poki在线小游戏网页版-poki免费游戏大全入口
poki游戏入口-点开即玩-poki游戏-在线免费畅玩
原神akt大佬资源viciNeko入口链接-原神akt大佬资源网页vicineko入口链接分享