Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

COT

Example

Compute the cotangent of a given number.

SELECT COT(6); 

Definition and Usage

The COT() function yields the cotangent value of a given number.

Syntax

COT(number)

Parameter Values

Parameter

Description

number

Mandatory: A numerical value is necessary. If the number is 0, an error or NULL is returned.

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Calculate the cotangent of a given number.

SELECT COT(2);