how to change data type of a column in mysql code example Example: alter table column change data type to text mysql ALTER TABLE tablename MODIFY columnname INTEGER;