SQL查询返回去除重复数据的结果集时间:2023-03-10 00:56:14 方法一: select * from tablename where id in (select id from tablename group by id having count(id) > 1 ) 方法二: select DISTINCT t.* from ( select* from Goods g ) t