alter table in php code example
Example 1: change data type in mysql
ALTER TABLE table_name
CHANGE COLUMN column_name column_name datatype;
Example 2: modify column name in tsql
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';
ALTER TABLE table_name
CHANGE COLUMN column_name column_name datatype;
sp_rename 'table_name.old_column', 'new_name', 'COLUMN';