SELECT column_a,column_b,COUNT(*) as num FROM TABLE GROUP BY column_a,column_b;
SELECT column_a,column_b,COUNT(*) as num FROM TABLE group by column_a,column_b having count(*)>1;
原文地址:http://blog.51cto.com/13523022/2064563
时间: 2024-10-18 08:58:15
SELECT column_a,column_b,COUNT(*) as num FROM TABLE GROUP BY column_a,column_b;
SELECT column_a,column_b,COUNT(*) as num FROM TABLE group by column_a,column_b having count(*)>1;
原文地址:http://blog.51cto.com/13523022/2064563