mysql round up code example
Example 1: round one decimal place mysql
SELECT ROUND(20.555, 1);
-- 20.5
SELECT ROUND(20.5, 0);
-- 21
Example 2: sql limit decimal places
SELECT CAST(ROUND(125.025000, 2) AS NUMERIC(36,2))
returns: 125.03
Example 3: round in sql
SELECT ROUND (commission_pct, 0)
From employees;
Example 4: round decimal mysql
round(column)