TA贡献1797条经验 获得超6个赞
sql 计算重复数据个数 可以使用 count 来统计例子personal表id name1 xm2 xm3 mx统计personal表中name为xm的个数select count(name) total from personal where name='xm'结果total2
TA贡献1795条经验 获得超7个赞
DISTINCT 是去重复值!select count(mypage) as s from deyebcount group by mypage order by mypage desc;
TA贡献1784条经验 获得超9个赞
select mypage,count(*) from deyebcount group by mypage order by mypage desc;
TA贡献2036条经验 获得超8个赞
1
2
select count(*),字段名 from 表名
group by 字段名 having count(*)>1
10+年DBA老司机带你轻松玩转 SQL
¥ 48.00
举报