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 -> Re: pl/sql table and commit

Re: pl/sql table and commit

From: buko <ivan.bukovcan_at_gmail.com>
Date: 16 Nov 2005 03:57:25 -0800
Message-ID: <1132142245.385834.317040@f14g2000cwb.googlegroups.com>


No you do not need commit when filling pl/sql table variables. If all data are processed in one session, variable content is visible and accesible instantly.

I would also suggest using a BULK COLLECT instead of cursor LOOP, it's better technique and also performs faster - example:

OPEN c1;
LOOP
FETCH c1 BULK COLLECT INTO v_DateTable [LIMIT rows];  EXIT WHEN c1%NOTFOUND;
END LOOP;
CLOSE c1;

Ivan Received on Wed Nov 16 2005 - 05:57:25 CST

Original text of this message

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