Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> BULK COLLECT / INSERT

BULK COLLECT / INSERT

From: Achille Carette <achyl_at_infonie.be>
Date: 30 Jul 2001 09:22:25 -0700
Message-ID: <2b039d5c.0107300822.4c91bcc0@posting.google.com>

I'm facing a pretty annoying error :
(8.1.7 / Win 2000)

I have two tables, TBL and TBL2, having each one a single field ID.

Here is a procedure, wich compiles without error :

CREATE OR REPLACE PROCEDURE TESTRETURNING AS   TYPE TIdList IS TABLE OF TBL.ID%TYPE;
  idList TIdList;
BEGIN
  INSERT INTO TBL2 SELECT ID FROM TBL RETURNING ID BULK COLLECT INTO idList; END;
/

When trying to execute this procedure, i get the error : ORA-00933: SQL command not properly ended ORA-06512: at "TEST.TESTRETURNING", line 5

what's wrong ? Received on Mon Jul 30 2001 - 11:22:25 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US