张表中有id和name 两个字段,查询出name重复的所有数据,现在列下:
select * from xi a where (a.username) in (select username from xi group by username having count(*) > 1)
时间: 2024-10-13 00:37:37
select * from xi a where (a.username) in (select username from xi group by username having count(*) > 1)