Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> bulk collect in 9i
Hello,
In 8i, the BULK COLLECT and FORALL commands are limited to working with scalar arrays.
Does this restriction still apply in 9i? We are still on 8.1.6.
In my case, I would like to do something like:
TYPE tab_type IS TABLE OF oracle_table%ROWTYPE INDEX BY BINARY_INTEGER; plsql_table tab_type;
SELECT * BULK COLLECT INTO plsql_table
FROM oracle_table;
and
FORALL j IN plsql_table.FIRST..plsql_table.LAST
INSERT INTO oracle_table VALUES (plsql_table(j));
Is this possible in 9i?
Thanks to any responders.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Bill Becker
INET: beckerb_at_mfldclin.edu
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Mar 27 2002 - 13:19:09 CST
![]() |
![]() |