MySQL PI function is one of the MySQL Mathematical Function, used to return the Pi value, and that is 3.141593.
Let us see how to find Pi value in MySQL. Next, how to use this function as an argument of another function with an example?.
The basic syntax of the PI in MySQL is as shown below:
MySQL PI Function Example 1
The first statement returns the PI value. In the second MySQL statement, we are adding 10 to the value. Within the third statement, we used this PI Mathematical Function inside a COS, SIN, and TAN functions.
SELECT PI() + 10 ;
SELECT COS(PI()), SIN(PI()), TAN(PI());