Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How can I get the DD,MM, YYYY part of the every day in a duration of 10 years
Hi Sanjay,
Something like this should do it for you
select to_date(:1,'DD MM YYYY') + rownum
from xxx,xxx
where rownum < (:2 - :1)
You need to replace :1 and :2 as binds for your dates.
Will cover up to 1M days.
xxx is just a table with 1000 rows from 1 to 1000.
Regards,
Zoran
> Hi,
> I want to generate one script which can return me
> dd,mm , yyyy part of every day for a duration, for
> example ..
> if I start from Jan 01,1999 to jan 01, 2010 then
> wanted the record for every day..
> 01 01 1999
> 02 01 1999
> ....
>
> till
> 01 01 2010..
>
> this will be used to create one time dimension..
>
> TIA
>
> Regards
>
> Sanjay
>
>
>
>
>
> Confidentiality Notice
>
> The information contained in this electronic message
> and any attachments to this message are intended
> for the exclusive use of the addressee(s) and may
> contain confidential or privileged information. If
> you are not the intended recipient, please notify
> the sender at Wipro or Mailadmin_at_wipro.com
> immediately
> and destroy all copies of this message and any
> attachments.
> --
> http://www.freelists.org/webpage/oracle-l
>
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Feb 01 2005 - 05:47:55 CST