DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
mysql delete duplicate rows except one
DELETE FROM NAMES WHERE id NOT IN (SELECT * FROM (SELECT MIN(n.id) FROM NAMES n GROUP BY n.name) x)
Source by sqlfiddle.com #
PREVIOUS
NEXT
Tagged:
#mysql
#delete
#duplicate
#rows
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit