FROM_ISO8601_DATE
説明
ISO8601形式の日付式をDATE型の日付式に変換します。
構文
from_iso8601_date(<dt>)
パラメータ
| パラメータ | 説明 |
|---|---|
<dt> | ISO8601形式の日付 |
戻り値
DATE型の日付式。
例
SELECT from_iso8601_date('0000-01'),from_iso8601_date('0000-W01'),from_iso8601_date('0000-059');
+------------------------------+-------------------------------+-------------------------------+
| from_iso8601_date('0000-01') | from_iso8601_date('0000-W01') | from_iso8601_date('0000-059') |
+------------------------------+-------------------------------+-------------------------------+
| 0000-01-01 | 0000-01-03 | 0000-02-28 |
+------------------------------+-------------------------------+-------------------------------+