MySQL Duplicates

Posted by: scoopseven 16 years, 3 months ago

#find duplicates select columnlist, count( duplicate_column) from table group by duplicate_column having count( duplicate_column) > 1 #find duplicates - show both records for comparison SELECT table.* FROM table inner join (select * from table group by duplicate_column having count(*)>1) as temp on table.duplicate_column = temp.duplicate_column

Currently unrated


Recent Tweets

Recent Posts

Archive

2013
2012
2011
2010
2009
2008
2007
2006

Categories

Authors

Feeds

RSS / Atom