Alter Table
Alter Table
Syntax:
Syntax:
To change the data type of a column in a table, use the following syntax:
You can change the column position of MySQL table without losing data with the help of ALTER
TABLE command. The syntax is as follows –
truncate newtable;
SET SQL_SAFE_UPDATES = 0;