ALTER TABLE sample62 CHANGE newcol c;
This code makes me mad. I just followed the book I had.
Program said
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near '' at line 1.
My MySQL version is 5.7. Can you please help me?
Best Answer
The error that gets thrown if the syntax is wrong. You did not clearly state what you are doing.
If you are changing a column
If you are trying to change column definition
If you are adding a new column