Syntax
SECOND(time)
Purpose
You can call this function to return the seconds of time.
Examples
obclient> SELECT SECOND('18:20:17');
+--------------------+
SECOND('18:20:17')
+--------------------+
17
+--------------------+
1 row in set (0.00 sec)