Skip to Main Content

SQL & PL/SQL

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!

Extracting Year from the date field

qwe12654Aug 18 2010 — edited Aug 18 2010
Hi,

I want to extract year from the date field... I've tried following code but got the error

SELECT to_char(a.A_EXPIRY_DATE,'yyyy') as EXP_YEAR from Table_A a

Please advice

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 15 2010
Added on Aug 18 2010
2 comments
814 views