I want to leave one record behind, but delete all other records that
have the same e-mail address. Is there a standard query for this or do
I need to write a script that will do it?
THanks,
Rory
On Thu, 30 Aug 2001 22:35:48 -0500, "Rory O'Connor" <[EMAIL PROTECTED]>
wrote:
>Do you want to delete all records which have duplicates, or do you want
to
>delete all the duplicates but leaving one copy of each duplicated
record
>behind?
>
>
>----- Original Message -----
>From: "Rory O'Connor" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Thursday, August 30, 2001 4:50 PM
>Subject: duplicate delete query
>
>
>excuse me if this is too newbie...but I need to perform a duplicate
>delete on my database using the e-mail address as the key. I
understnad
>how to use COUNT and DISTINCT together...
>
>select count(DISTINCT email) FROM table;
>
>but I can't seem to find any info on how to perform the actual
deletion
>of the duplicate records. Any info is appreciated!
>
>
>
>
>---------------------------------------------------------------------
>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
>
>
>
providing the finest in midget technology
---------------------------------------------------------------------
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