メインコンテンツまでスキップ
バージョン: Latest-3.4

to_date

DATETIME 値を日付に変換します。

Syntax

DATE TO_DATE(DATETIME datetime)

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

キーワード

TO_DATE