mysql decimal integer code example
Example 1: mysql text to decimal
SELECT CAST(colName AS DECIMAL(10,2))
FROM tableName
Example 2: mysql alter decimal precision
ALTER TABLE YourTableNameHere MODIFY COLUMN YourColumnNameHere decimal(4,2)
SELECT CAST(colName AS DECIMAL(10,2))
FROM tableName
ALTER TABLE YourTableNameHere MODIFY COLUMN YourColumnNameHere decimal(4,2)