This tutorial explains how to use the MySQL SECOND function with syntax and examples.
The MySQL SECOND function returns the second portion of a date value.
The syntax for the SECOND function in MySQL is:
A time or datetime value from which to extract the seconds.
The SECOND function can be used in the following versions of MySQL:
Let's look at some MySQL SECOND function examples and explore how to use the SECOND function in MySQL.
For example:
This last SECOND example would display the second portion of the current system time (current system time is returned by the CURTIME function).