C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL PI() FunctionThe pi() is a Math function of MySQL. This function is used to get the value of pi upto 6 decimal places. Syntax
select pi(); Returns
This function returns the value of ? (pi) displayed with 6 decimal places. Example 1select pi(); Output:
Example 2
select pi()+12; Output:
Next TopicMySQL Math
|