mysql convert string to float code example
Example 1: mysql text to decimal
SELECT CAST(colName AS DECIMAL(10,2))
FROM tableName
Example 2: cast float mysql
SELECT
integer_column + 0.0 AS float_column
SELECT CAST(colName AS DECIMAL(10,2))
FROM tableName
SELECT
integer_column + 0.0 AS float_column