摘要: 统计操作 1、分组统计group by select id,name,count(*) as '总数' from test1 group by id,name --group by 分组字段需要和显示字段一至 并且可以直接使用count(*)统计各有多少数量 2、case when 对数据进行分组 阅读全文
posted @ 2018-12-08 17:19 神奇的小龟与小鸟 阅读(341) 评论(0) 推荐(0) 编辑