Oracle使用Group By获取分组后共分了多少组的组数量
比如select gid from table group by gid
查询时使用下面的方法查询条数select count(distinct gid) from table使用select count(gid) from table group by gid是错误的这样查询的是分组后 每个组内部的条数转载于:https://www.cnblogs.com/rchao/p/4562836.html##
...
原创
2020-05-15 09:15:20 ·
6198 阅读 ·
0 评论