Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to extract second value from sysdate using the EXTRACT function

A-KNov 20 2008 — edited Nov 20 2008
Hi,

I want to extract the second value from sysdate using the EXTRACT function.
When i execute the following query i get an error ;

SELECT extract ( second FROM SYSDATE) FROM dual;

ORA-30076: invalid extract field for extract source.

When i do it to extract the month i get the proper result.

Is there some formatting needed in specifying the sysdate ( or any other date value) in the query. ?


Thanks.
This post has been answered by Maran Viswarayar on Nov 20 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2008
Added on Nov 20 2008
1 comment
5,728 views