Forum Moderators: mack

Message Too Old, No Replies

Assigning unique key to mysql table

         

hswaseer

7:26 am on Jan 20, 2005 (gmt 0)

10+ Year Member



Hi,

I want to assign unique key to my database column so that all the duplicate records are deleted.

How should i write this query?

Thanks

HS

hswaseer

10:19 am on Jan 20, 2005 (gmt 0)

10+ Year Member



Hi,

I have read few articles and able to make the below query

ALTER IGNORE TABLE `abc` ADD UNIQUE(`name`);

want to know that, is this query is OK?.....

What i want is that it should delete all the duplicate names from my table.

HS