Type Value |
MICROSECOND |
10th second, ± n |
Date_sub (@ date, INTERVAL 2 MICROSECOND) |
08.999998 |
SECOND |
Seconds |
Date_sub (@ date, INTERVAL 2 SECOND) |
2017-09-09 09: 09:07 |
MINUTE |
Minutes |
Date_sub (@ date, INTERVAL 2 MINUTE) |
2017-09-09 09:07: 09 |
HOUR |
Hours |
Date_sub (@ date, INTERVAL 2 HOUR) |
2017-09-0907: 07: 09 |
DAY |
Days |
Date_sub (@ date, INTERVAL 2 DAY) |
2017-09-0709:09:09 |
WEEK |
Week |
Date_sub (@ date, INTERVAL 2 WEEK) |
2017-08-2609:09:09 |
MONTH |
Month |
Date_sub (@ date, INTERVAL 2 MONTH) |
2017-07-09 09:09:09 |
QUARTER (QUARTER, 3 months) |
Quarter |
Date_sub (@ date, INTERVAL 2 QUARTER) |
2017-03-09 09:09:09 |
YEAR |
Year |
Date_sub (@ date, INTERVAL 2 YEAR) |
2015-09:09:09, 09-09 |
SECOND_MICROSECOND |
Expression, from second to minute |
Date_sub (@ date, INTERVAL '2. 2' SECOND_MICROSECOND) |
2017-09-09 09: 09:06.980000 |
MINUTE_MICROSECOND |
Expression, from minute to second |
Date_sub (@ date, INTERVAL '2: 2.2 'MINUTE_MICROSECOND) |
2017-09-09 09:. 800000 |
MINUTE_SECOND |
Expression, from minute to second |
Date_sub (@ date, INTERVAL '2: 2' MINUTE_SECOND) |
2017-09-09 09:07:07 |
HOUR_MICROSECOND |
Expression, from hour to second |
Date_sub (@ date, INTERVAL '2: 2: 2.2 'HOUR_MICROSECOND) |
2017-09-0907:07:06. 800000 |
HOUR_SECOND |
Expression, from hour to second |
Date_sub (@ date, INTERVAL '2: 2: 2' HOUR_SECOND) |
2017-09-0907:07:07 |
HOUR_MINUTE |
Expression, from hour to minute |
Date_sub (@ date, INTERVAL '2: 2' HOUR_MINUTE) |
2017-09-0907:07: 09 |
DAY_MICROSECOND |
Expression, ranging from day to second, |
Date_sub (@ date, INTERVAL '2. 2 'DAY_MICROSECOND) |
2017-09-07 07:07:06. 800000 |
DAY_SECOND |
Expression, days to seconds, |
Date_sub (@ date, INTERVAL '2 'DAY_SECOND) |
2017-09-07 07:07:07 |
DAY_MINUTE |
Expression, days to minutes, |
Date_sub (@ date, INTERVAL '2: 2 'DAY_MINUTE) |
2017-09-07: 09 |
DAY_HOUR |
Expression, from day to hour, |
Date_sub (@ date, INTERVAL '2 2' DAY_HOUR) |
2017-09-07 07: 09: 09 |
YEAR_MONTH |
Expression, year to month, |
Date_sub (@ date, INTERVAL '2 2' YEAR_MONTH) |
2015-07-09 09:09:09 |