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
Delphi 6 not recompiling .pas files
MySQL error in SQL syntax
How to parse XML string in Oracle procedure ?
Duplicate Databes
Exchange SMTP problems
Printing problems in Outlook - incomplete printout
Memory Advanced ECC Mode with Mixed DIMM Capacities on Dell R710 PowerEdge
InDesign CS3: Select a specific text frame
Getting own send e-mail in Blackberry
vb script to ping hosts and check operating system