Mysql去除重复值列,只保留一条
 
1
DELETE
2
FROM
3
      software USING (software,(SELECT DISTINCT min(id) AS id, ident FROM software GROUP BY ident HAVING count(1) > 1) AS t2)
4
WHERE
5
      software.ident = t2.ident
6
AND software.id > t2.id;