PI Function - SQL


Overview


The PI function in SQL returns the value of π (pi) to a high degree of precision. It is useful for mathematical calculations involving the constant π.

Example:

SELECT PI()

Syntax:

SELECT PI()

The PI function does not take any arguments and directly returns the value of π.