bitsCN.com Mysql去除重复值列,只保留一条 1DELETE2FROM3 software USING (software,(SELECT DISTINCT min(id) AS id, ident FROM software GROUP BY ident HAVING count(1) > 1) AS t2)4WHERE5 software.ident = t2.ident6AND software.id > t2.id;登录后复制 bitsCN.com