摘要:
需求: 按段分组,统计各组下总数 select pricegroup,count(*) from ( select case when money >= 0 and money <10 then '0-10' when money >= 10 and money <20 then '10-20' w 阅读全文
posted @ 2019-04-19 14:03
林远
阅读(116)
评论(0)
推荐(0)
摘要:
需求: 每条记录后添加一个字段,内容为该记录所在类的类中记录数 select*from table1, (select class,count(*) from table1 group by class) as T2 where table1.class=T2.class 阅读全文
posted @ 2019-04-19 13:54
林远
阅读(107)
评论(0)
推荐(0)

浙公网安备 33010602011771号