Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest self-service freelancing marketplace for people like you.

SQL PI Function

PI returns the constant value of π (3.14159265358979).

PI has a precision of 14 decimals.

π is a constant, therefore PI always returns the same number.

Example

#

The example returns the value of π (3.1415).

SELECT PI() AS PI
Result:  1 record
PI
3.14159265358979

Syntax

Syntax of the PI function.

PI()

You may also like



Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest self-service freelancing marketplace for people like you.

Guides


vsn 3.1