mysql count统计多列值相同的条数

结合group by 使用,并需要知道多列(col1,col2 ...)中一个列的值

select count(*) from Table where col1=#{col1} group by col1,col2 ...

posted @ 2019-11-26 11:09  我看见的世界  阅读(2983)  评论(0)    收藏  举报