Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
SQL analytics endpoint in Microsoft Fabric
Warehouse in Microsoft Fabric
SQL database in Microsoft Fabric
Returns the constant value of PI.
Transact-SQL syntax conventions
Syntax
PI ( )
Return Types
float
Examples
The following example returns the value of PI.
SELECT PI();
GO
Here's the result set.
------------------------
3.14159265358979
(1 row(s) affected)