现在的位置: 首页 > 综合 > 正文

SQL查询,在同一个数据库,同一个表,同一个字段查出重复数据

2013年03月14日 ⁄ 综合 ⁄ 共 76字 ⁄ 字号 评论关闭
select * from table where  exists(select 字段名 from table group by 字段名 having count(字段名)>1)

 

抱歉!评论已关闭.