PI (Transact-SQL)
Applies to: SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
Microsoft Fabric の SQL 分析エンドポイント
Microsoft Fabric のウェアハウス
PI の定数値を返します。
構文
PI ( )
戻り値の型
float
例
次の例では、PI
の値を返します。
SELECT PI();
GO
結果セットは次のとおりです。
------------------------
3.14159265358979
(1 row(s) affected)