TIME
デスクリプション
TIME関数はDatetime値のtime部分を取得します。
Syntax
TIME(<datetime>)
パラメータ
| Parameter | デスクリプション |
|---|---|
<datetime> | datetime値。 |
Return Value
TIME型の値を返します
Example
SELECT TIME('2025-1-1 12:12:12');
mysql>
+---------------------------+
| time('2025-1-1 12:12:12') |
+---------------------------+
| 12:12:12 |
+---------------------------+