mysql decimal 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)
Example 3: mysql decimal
column_name DECIMAL(5,2)
Example 4: mysql type for large numbers with many decimal
CREATE TABLE tab(col DECIMAL(20,10));