COT (Transact-SQL)COT (Transact-SQL)
適用対象:Applies to: SQL ServerSQL Server (サポートされているすべてのバージョン)
SQL ServerSQL Server (all supported versions)
Azure SQL データベースAzure SQL Database
Azure SQL データベースAzure SQL Database
Azure SQL Managed InstanceAzure SQL Managed Instance
Azure SQL Managed InstanceAzure SQL Managed Instance
Azure Synapse AnalyticsAzure Synapse Analytics
Azure Synapse AnalyticsAzure Synapse Analytics
Parallel Data WarehouseParallel Data Warehouse
Parallel Data WarehouseParallel Data Warehouse
SQL ServerSQL Server (サポートされているすべてのバージョン)
SQL ServerSQL Server (all supported versions)
Azure SQL データベースAzure SQL Database
Azure SQL データベースAzure SQL Database
Azure SQL Managed InstanceAzure SQL Managed Instance
Azure SQL Managed InstanceAzure SQL Managed Instance
Azure Synapse AnalyticsAzure Synapse Analytics
Azure Synapse AnalyticsAzure Synapse Analytics
Parallel Data WarehouseParallel Data Warehouse
Parallel Data WarehouseParallel Data Warehouse
指定した、ラジアンで指定された角度の三角関数コタンジェントを返す数学関数 float 式です。A mathematical function that returns the trigonometric cotangent of the specified angle - in radians - in the specified float expression.
Transact-SQL 構文表記規則
Transact-SQL Syntax Conventions
構文Syntax
COT ( float_expression )
注意
SQL Server 2014 以前の Transact-SQL 構文を確認するには、以前のバージョンのドキュメントを参照してください。To view Transact-SQL syntax for SQL Server 2014 and earlier, see Previous versions documentation.
引数Arguments
float_expressionfloat_expression
float 型、または暗黙的に float 型に変換できる 式を指定します。An expression of type float, or of a type that can implicitly convert to float.
戻り値の型Return types
floatfloat
例Examples
この例では、特定の角度の COT
値が返されます。This example returns the COT
value for the specific angle:
DECLARE @angle FLOAT;
SET @angle = 124.1332;
SELECT 'The COT of the angle is: ' + CONVERT(VARCHAR, COT(@angle));
GO
結果セットは次のようになります。Here is the result set.
The COT of the angle is: -0.040312
(1 row(s) affected)