是因为主键id数据有重复‘
查询id重复的sql:
select id from tableName where id in (select id from tableName group by id having count(id) >= 2)
是因为主键id数据有重复‘
查询id重复的sql:
select id from tableName where id in (select id from tableName group by id having count(id) >= 2)