MySQL Function Reference

TIME_TO_SEC
Converts a time value into the number of seconds.
MySQL 8.1
TIME_TO_SEC(time)
time
The time value to convert.
Examples
MySQL 8.1
SELECT TIME_TO_SEC('01:02:03');