bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL COT() Function

Concept visual

MySQL COT() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the cotangent of a number:

SELECT COT(6);

Definition and Usage

The COT() function returns the cotangent of a number.

Syntax

Cot(

number )

Parameter Values

Parameter

Description number

Required. A numeric value. If number is 0, an error or NULL is returned

Technical Details

Works in:

From MySQL 4.0

More Examples

Example

Return the cotangent of a number:

SELECT COT(-2);

Previous

❮ MySQL Functions

Next

Previous

MySQL COS() Function

Next

MySQL COUNT() Function