I have taken only the time value from systimestamp. But with the same i need to extract hour from time value.
SELECT EXTRACT (HOUR FROM TO_CHAR(systimestamp,'hh24:mi:ss'')) FROM DUAL ;
but I'm getting "invalid extract field for extract source"
You can also use to_char as follows:
to_char
SELECT to_char(systimestamp,'hh24') FROM DUAL
2.1m questions
2.1m answers
60 comments
57.0k users