change datatype of coulum mysql code example
Example 1: alter table add column
ALTER TABLE table
ADD COLUMN column VARCHAR (255) NOT NULL AFTER column;
Example 2: change data type in mysql
ALTER TABLE table_name
CHANGE COLUMN column_name column_name datatype;