Sql查询重复数据

 Sql查询重复数据

 

select * from tb where a2 in (select a2 from tb group by a2 having(count(*)>1))

你可能感兴趣的:(SQL语言,sql)