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
How Can I Turn Off the Record Selector Bar on an Inserted SubForm?
When I encrypt/encode a string using codeigniter encryption class, it is different everytime, why?
Delphi 6 not recompiling .pas files
datagrid question
How to parse XML string in Oracle procedure ?
installing a UCC certificate with local domains for Exchange 2010 - how does the certificate authority approve them?
Help setting up simple Isolated Wifi VLAN
How to create store procedures and pass values in SQL
Memory Advanced ECC Mode with Mixed DIMM Capacities on Dell R710 PowerEdge
Get Access Database online