I hope you have unique id in your table
Select distinct into temp table, then select each row from temp table and
delete from your_table where
field="dupl value" and id<>temp.id (in abstract syntax)
----- Original Message -----
From: Linsen Limsico <[EMAIL PROTECTED]>
To: mysql_list <[EMAIL PROTECTED]>
Sent: Thursday, February 08, 2001 8:13 PM
Subject: Finding Duplicates and Deleting
Does anyone know how to find duplicates in a table and deleting them. I
can't figure out how to structure the query.
Linsen
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php