For example:
ALTER TABLE webstore.Store MODIFY COLUMN (
ShortName VARCHAR(100),
UrlShort VARCHAR(100)
);
The above however does not work. I am using MySql 5.x
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.
ALTER TABLEcan do multiple table alterations in one statement, butMODIFY COLUMNcan only work on one column at a time, so you need to specifyMODIFY COLUMNfor each column you want to change:Also, note this warning from the manual: