change column data type in mysql code example
Example 1: mysql show column data types
SELECT DATA_TYPE from INFORMATION_SCHEMA.COLUMNS where
table_schema = ’yourDatabaseName’ and table_name = ’yourTableName’.
Example 2: alter table add column
ALTER TABLE table_name
ADD column_name datatype;
Example 3: change data type in mysql
ALTER TABLE table_name
CHANGE COLUMN column_name column_name datatype;