timestampadd
function
Applies to: Databricks SQL Databricks Runtime 10.4 LTS and above
Adds value
unit
s to a timestamp expr
.
Syntax
timestampadd(unit, value, expr)
unit
{ MICROSECOND |
MILLISECOND |
SECOND |
MINUTE |
HOUR |
DAY | DAYOFYEAR |
WEEK |
MONTH |
QUARTER |
YEAR }
Arguments
unit
: A unit of measure.value
: A numeric expression with the number ofunit
s to add toexpr
.expr
: A TIMESTAMP expression.