当前位置:Gxlcms > mysql > Mysql去除重复值列,只保留一条_MySQL

Mysql去除重复值列,只保留一条_MySQL

时间:2021-07-01 10:21:17 帮助过:13人阅读

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

人气教程排行