sql 根據某個字段進行去重

sql 根據某個字段進行去重html select * from tablename as a where not exists (select 1 from tablename where attachid=a.attachid and name<a.name) 參考: https://www.cnblogs.com/nihaoyueyue/p/5892369.htmlweb
相關文章
相關標籤/搜索