Skip to content

SECOND

  • time: This is the time or datetime value from which you want to extract the second. It can be in ‘HH
SELECT SECOND('2020-05-12 22:34:57');
57

The SECOND function in this example returns the seconds from the time provided. In the string ‘2020-05-12 22:34:57’, the seconds are ‘57’, hence the output is 57.