有表A, 中有字段id, name, memo 现在有很多id重复的数据,怎么把这些重复的都查出来? group by?
select id, name, memo from A where id in (select id from A group by id having count(1) >= 2)
有表A, 中有字段id, name, memo 现在有很多id重复的数据,怎么把这些重复的都查出来? group by?
select id, name, memo from A where id in (select id from A group by id having count(1) >= 2)