Answers for "add decimal to mysql"

SQL
1

mysql text to decimal

SELECT CAST(colName AS DECIMAL(10,2))
FROM tableName
Posted by: Guest on August-11-2020
0

round one decimal place mysql

SELECT ROUND(20.555, 1);
-- 20.5
SELECT ROUND(20.5, 0);
-- 21
Posted by: Guest on November-25-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language