Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change column status

Status
Not open for further replies.

yigalm

Technical User
Aug 16, 2001
42
US
Hi,

I need to make one field unique in a table.
The table description (show create table_name) already lists this field as being a KEY. I don't know what this means, but when I say:
"alter table table_name add unique (field_name);"

I get an error:
"ERROR 1061: Duplicate key name 'field_name'"

How may I make it unique?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top