Files
doris/docs/documentation/cn/sql-reference/sql-functions/date-time-functions/to_days.md
Mingyu Chen 176e185e18 Add broker doc (#1662)
This broker document introduces the properties for different broker types.
2019-08-20 17:18:54 +08:00

359 B

to_days

description

Syntax

INT TO_DAYS(DATETIME date)

返回date距离0000-01-01的天数

参数为Date或者Datetime类型

example

mysql> select to_days('2007-10-07');
+-----------------------+
| to_days('2007-10-07') |
+-----------------------+
|                733321 |
+-----------------------+

##keyword

TO_DAYS,TO,DAYS