select column1,column2,column3, count(*) as numlines
from table
group by column1,column2,column3
having numlines > 1

That will find them,, you'll have to write some script or something
to go through the results and remove the duplicates, I'm not
sure if a query that will do both at once.

Linsen Limsico wrote:
> 
> 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

Reply via email to