Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
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