login

SQL PI Function

SQL PI() function maybe the most simplest mathematical SQL function because it returns a constant value of PI. Here is the syntax:

SELECT PI()

The query is simple as follows:

SELECT PI() pi

We get the output of constant PI value:

    pi  
--------
3.141593
Read On