這個函數隻是簡單地返回圓周率的值。MySQL的內部存儲雙精度圓周率值。
mysql>SELECT PI(); +---------------------------------------------------------+ | PI() | +---------------------------------------------------------+ | 3.141593 | +---------------------------------------------------------+ 1 row in set (0.00 sec)