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!

Date function EXTRACT ?

37820Apr 6 2011 — edited Apr 6 2011
Hi,

Thanks for your replies. I find the following do the same.

1) TO_CHAR(Sysdate, 'YYYY')

2) EXTRACT (YEAR from SYSDATE)

Which one is efficient on performance?

Are there any situation one is better than other?

Thanks in your thoughts.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2011
Added on Apr 6 2011
2 comments
521 views