Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
Updated Nov 20, 2024
Send us feedback
sec
Applies to: Databricks SQL Databricks Runtime 10.1
Returns the secant of expr.
expr
sec(expr)
expr: An expression that evaluates to a numeric expressing the angle in radians.
A DOUBLE.
DOUBLE
sec(expr) is equivalent to 1 / cos(expr)
1 / cos(expr)
> SELECT sec(pi()); -1.0 > SELECT sec(0); 1.0
acos function
cos function
cosh function
csc function
sin function
tan function