I have a time value of 04:30:25 that I want to convert to seconds. Is there a special feature for this?
I know that we can extract hours, minutes and seconds, and then calculate the seconds.
SELECT EXTRACT(hour FROM t)*60*60 + EXTRACT(minutes FROM t)*60 + EXTRACT(seconds FROM t) FROM test;
But I want a different way ...
postgresql
Pavunkumar
source share