![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Programming
文章平均质量分 81
weixin_49790852
这个作者很懒,什么都没留下…
展开
-
SQL汇总统计与CUBE概念
SQL汇总统计(Group by, ROLLUP, CUBE)与CUBE概念 第一层:【GROUP BY】将一个“数据集”划分成若干个“小区域”,然后针对若干个“小区域”进行数据处理。 SELECT 性别, COUNT(学号) AS 数量 FROM STUDENT GROUP BY 性别 第二层:【GROUP BY】+【WITH ROLLUP】ROLLUP计算了指定分组(就是汇总的维度)的多个层次的数量小计以及合计,先逐步创建高一级别的小计,最后再创建一行总计。整体结果都是以转载 2021-03-19 16:35:49 · 1496 阅读 · 0 评论 -
SQL学习笔记
Data Types String Fields Understand character sets and are indexable for searching CHAR allocates the entire space (faster for small strings where length is known) VARCHAR allocates a variable amount of space depending on the data length (less space) Tex原创 2021-03-05 13:16:55 · 189 阅读 · 0 评论