Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 381 Bytes

File metadata and controls

28 lines (19 loc) · 381 Bytes

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