slicendice
Programmer
Hi
I'm trying to do a simple (at least I *thought* it was simple!) BULK COLLECT in 9i but when that actual BULK COLLECT statement runs, it just seems to hang (I've run it in SQL*Plus and PL/SQL Developer debugger). The code I'm running is as follows:
This compiles OK but when running, it gets to the BULK COLLECT line and just stops. Anyone have any ideas what I'm doing wrong or what the problem might be?
Thanks
I'm trying to do a simple (at least I *thought* it was simple!) BULK COLLECT in 9i but when that actual BULK COLLECT statement runs, it just seems to hang (I've run it in SQL*Plus and PL/SQL Developer debugger). The code I'm running is as follows:
Code:
TYPE typVacRec IS TABLE OF vac_table%ROWTYPE;
tabVacRec typVacRec := typVacRec();
BEGIN
SELECT *
BULK COLLECT INTO tabVacRec
FROM vac_table
WHERE id = 300547;
DBMS_OUTPUT.PUT_LINE('Bulk collected: '||tabVacRec.COUNT);
END;
This compiles OK but when running, it gets to the BULK COLLECT line and just stops. Anyone have any ideas what I'm doing wrong or what the problem might be?
Thanks