I have a table with the following primary key:
PRIMARY KEY (`Id`,`InputOutputConfigurationServerAccountId`,`Identifier`)
I want to modify this so that the PK is only the Id column. How do I do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The problem seems to be that you have
Iddefined asauto_increment. You need to first change it to just plain int, them make the changes, then turn it back to auto_increment.Try this:
Here’s a test of the above (btw, I got the error you mentioned in your comment on other answer if I didn’t first modify the column):
All executed OK. Final Output: