Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to delete all duplicate items in mysql

DELETE FROM FriendsData WHERE fID 
       NOT IN ( SELECT fID FROM FriendsData 
                   GROUP BY UserID, FriendsUserID, IsSpecial, CreatedBy)
Source by sqlfiddle.com #
 
PREVIOUS NEXT
Tagged: #delete #duplicate #items #mysql
ADD COMMENT
Topic
Name
8+1 =