Home > Database > Mysql Tutorial > Mysql去除重复值列,只保留一条_MySQL

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:32:04
Original
1047 people have browsed it

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;
Copy after login

 


bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Software
From 1970-01-01 08:00:00
0
0
0
software
From 1970-01-01 08:00:00
0
0
0
Automatic software updates
From 1970-01-01 08:00:00
0
0
0
software
From 1970-01-01 08:00:00
0
0
0
What software is this
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template