|
|
Re: how can we use date in for loop [message #238486 is a reply to message #238477] |
Fri, 18 May 2007 05:38 |
JRowbottom
Messages: 5933 Registered: June 2006 Location: Sunny North Yorkshire, ho...
|
Senior Member |
|
|
It would be nice if yuo could show us the code you're having problems with.
If you're trying to do something like:FOR dt IN sysdate .. sysdate+10 LOOP
...
END LOOP; then you just can't do it - loops are for numbers, not dates.
You could do:FOR dt IN 0 .. date_2 - date_1 LOOP
v_date := date_1+dt;
...
END LOOP;
|
|
|
|
|