convert mysql column type code example
Example 1: alter table column change data type to text mysql
ALTER TABLE tablename MODIFY columnname INTEGER;
Example 2: mysql text to decimal
SELECT CAST(colName AS DECIMAL(10,2))
FROM tableName
ALTER TABLE tablename MODIFY columnname INTEGER;
SELECT CAST(colName AS DECIMAL(10,2))
FROM tableName