Curriculum
Course: MYSQL
Login

Curriculum

MYSQL

MySQL References

0/140
Text lesson

PI

Example

Provide the numerical value of the constant PI.

SELECT PI(); 

Definition and Usage

The PI() function retrieves the numerical value of the constant PI.

Note: Also refer to the DEGREES() and RADIANS() functions for angle conversions.

Syntax

PI()

Technical Details

Works in: From MySQL 4.0