PI
Returns the mathematical constant π (pi), which is the ratio of a circle's circumference to its diameter.
See also:
[SELECT
]
Syntax
SELECT PI() AS pi_value;
Arguments
This function does not require any arguments.
Return Value(s)
Returns the constant π, approximately equal to 3.14159.
Examples
Retrieve the value of π
SELECT PI() AS pi_value;
This query will output the value of π, which is approximately 3.14159
, useful in various mathematical calculations involving circles and other geometric functions.