SQL> select * from temp1;ID NAME MONTH MONEY
-- ---------- ----- -----
1 11 1 11
1 11 1 11
1 11 1 11
1 11 1 11
2 22 2 22
3 33 3 33
2 22 2 22
2 22 2 228 rows selectedSQL> select id,name,month,money,count(*) from temp1 group by id,name,month,money;ID NAME MONTH MONEY COUNT(*)
-- ---------- ----- ----- ----------
1 11 1 11 4
2 22 2 22 3
3 33 3 33 1
-- ---------- ----- -----
1 11 1 11
1 11 1 11
1 11 1 11
1 11 1 11
2 22 2 22
3 33 3 33
2 22 2 22
2 22 2 228 rows selectedSQL> select id,name,month,money,count(*) from temp1 group by id,name,month,money;ID NAME MONTH MONEY COUNT(*)
-- ---------- ----- ----- ----------
1 11 1 11 4
2 22 2 22 3
3 33 3 33 1
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货