Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 405 Bytes

File metadata and controls

26 lines (18 loc) · 405 Bytes

to_date

description

Syntax

DATE TO_DATE(DATETIME datetime)

返回 DATETIME 类型中的日期部分。

example

MySQL > select to_date("2020-02-02 00:00:00");
+--------------------------------+
| to_date('2020-02-02 00:00:00') |
+--------------------------------+
| 2020-02-02                     |
+--------------------------------+

keyword

TO_DATE