mysql - Delete Composite unique key [ applied on 3 fields combinely ] -


In MySQL, I have created a unique composite key based on 3 columns.

How can I remove this unique key barrier without removing the entire table?

I got an answer and it worked

  show index table_name   

Then check the "key_name" barrier that you want to leave.

This will be "key_name" for the combined parenthesis in the form of " arbitrary_index_name ".

then use this DROP query

  drop indexes arbitrary_index_name on table_name    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -