select * from tablename as a where not exists (select 1 from tablename where attachid=a.attachid and name<a.name) mysql另一种去重方式 select * from table group by name 相关文章: 2022-02-09 2022-02-08 2022-01-07 2021-12-09 2021-12-13 2022-02-07 2021-11-18