ROUND meaning in SQL
In SQL, the ROUND function is used to round a number to a specified number of decimal places. This function rounds a number according to the specified number of digits and returns the result as output.
Syntax
ROUND(number, decimal_places)
Where:
Example
To round the number 123.4567 to two decimal places, you can use the following query:
SELECT ROUND(123.4567, 2);
Output:
123.46
Rounding rules
ROUND function follows standard rounding rules:
Note
The above is the detailed content of What does round mean in sql. For more information, please follow other related articles on the PHP Chinese website!