Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: 10g Rel 2 Problems, Possible DOS threat????
Bob Jones wrote:
> <Geek.Empire_at_gmail.com> wrote in message > news:1159379127.264537.44730_at_i3g2000cwc.googlegroups.com...
> > This code is not only bad but pointless. Why is there BULK COLLECT in the > DECLARE section?
Thank you for pointing it out because I was so busy yesterday I just copied the example into a SQL> prompt and confirmed the observation. But if it is properly written it works perfectly.
DECLARE
TYPE DOSTestTab IS TABLE OF dual.dummy%TYPE;
vDTab DOSTestTab;
CURSOR c_DOScursor IS
SELECT dummy FROM dual;
BEGIN
OPEN c_DOScursor;
FETCH c_DOScursor BULK COLLECT INTO vDTAB;
CLOSE c_DOScursor ;
END;
/
I should have paid more attention and caught that: Glad you did.
-- Daniel Morgan University of Washington Puget Sound Oracle Users GroupReceived on Thu Sep 28 2006 - 11:36:42 CDT
![]() |
![]() |