This is my mysql query to select time from seconds.
SELECT TIME_FORMAT(SEC_TO_TIME(120),'%H:%i' )
This will return as 00:02 (HOUR AND MINUTES)
I need to show time hour,minutes,seconds automatically if there is a hour and there is a minute. no need to show like 00:00:10.
Is there any mysql function for doing this?