second
Returns the second part for a given date. The return value ranges from 0 to 59.
The date
parameter must be of the DATE or DATETIME type.
Syntaxβ
INT SECOND(DATETIME date)
Examplesβ
MySQL > select second('2018-12-31 23:59:59');
+-----------------------------+
|second('2018-12-31 23:59:59')|
+-----------------------------+
| 59 |
+-----------------------------+
keywordβ
SECOND