Jump to content

how can I delete duplicate entries from my database?


dabempire

Recommended Posts

I have a script that is a links directory.  It has quite a few duplicates in the database.  What can I use to delete the duplicates?  Here is the database info.

 

database: links

row: my_links

column with duplicate entries: link

 

I need to run it so that if X exists >1 time to remove all but 1.

 

Thanks a ton for any help.

first off, you won't have duplicate entries if you have your database normalized enough to meet your needs. And even if with the key, still duplicates exist.... then you can delete it by deleting the entry through an ID.

 

other than that, you can use ag3tn42's suggestion since not a column was unique there in.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.