MySQL SECOND Function

Example

Return the seconds part of a datetime value:

SELECT SECOND("2017-06-20 09:34:00.000023");

Definition and Usage

The SECOND() function returns the seconds part of a time/datetime (from 0 to 59).

Syntax

SECOND(datetime)

Continue reading MySQL SECOND Function