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
jquery datepicker make ALL sunday and monday unselectable
Split data from one column into 2 columns
Multiple Dll's in Delphi
Can I use Dell Latitude windows 7 CD to custom install another Laptop?
HP ML110 Disk Array failed
How can the AD objects deletion reflect in WSUS console immediately.
Random Excel 2007 crashes
where does oracle enterprise manger look
Counting number of checked checkboxes in a form (when checkboxes are all named differently)
HP Web JetAdmin uses lots of RAM