Microsoft
Software
Hardware
Network
Question : PL/SQL - how to dynamically retrieve next 5 years from sysdate
Does anyone know to code the PL/SQL required to dynamically retrieve the next 5 years from the current sysdate? So no matter what year it is, the query will always produce the next 5 years from that date.
Thanks.
Answer : PL/SQL - how to dynamically retrieve next 5 years from sysdate
try this. It works for me.
select to_char(add_months(sysdate
,(level-1)
*12), 'YYYY')
from dual
connect by level <= 5
Random Solutions
SBS 2003 / Error: too many hops (delivery attempts: 0)
Excel Date Time format conversion yyyy-mmm-dd hh:mm:ss to mm/dd/yyyy hh:mm:ss
Setting Compatibility Mode in IE8 using JavaScript
wordpress causing infinite tabs opening?
How do I set up my wireless network?
change SQLserver 2005 to mix mode
How do I modify this php script to send a confirmation?
Windows 2008 - HP LaserJet 2600n drivers aren't working
AMD vs Intel? on dell's website - which has greater VM performance?
Excel control returns only a string