집 >데이터 베이스 >MySQL 튜토리얼 >Mysql去除重复值列,只保留一条_MySQL
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;