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!

select extract(month from sysdate)+6 = returns 13 and not 1(jan)

450482Jul 7 2008 — edited Jul 7 2008
Hi
I am using the following query to get the month 6 months from now.
select extract(month from sysdate)+6
from dual
How can I say that the month should be 6 months from todays month? It worked all these days because this month + 6 was always a valid month. Now it returns 13.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2008
Added on Jul 7 2008
8 comments
3,322 views