Question : Help with mysql delete duplicates query

I want to delete  they complete entry in the database where the value in field E is duplicated.

It seemed to me that this should work:
delete from shipments where E in (select  E  from shipments group by E having  count(*) > 1 ORDER BY `flo_shipments`.`E`  ASC)

The select statement does work, but when I try the "delete where in" statement I get:
#1093 - You can't specify target table 'flo_shipments' for update in FROM clause

I'd apprecitate your ideas on how to do this.
1:
delete from shipments where E in (select  E  from shipments group by E having  count(*) > 1 ORDER BY `flo_shipments`.`E`  ASC)

Answer : Help with mysql delete duplicates query

So, come to find out, the reason for the slow operation and frequent crashing is due to a surplus of emails being sent to one of the addresses connected to my Thunderbird.  There were some 300,000+ emails in just one of the boxes.  Since the emails have started getting deleted, Thunderbird has stopped crashing on me and is slowly but surely getting faster.
Random Solutions  
 
programming4us programming4us