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: Array Fetch - Array Insert

Re: Array Fetch - Array Insert

From: Gerrit-Jan Linker <gjlinker_at_litconsulting.freeserve.co.uk>
Date: Sat, 10 Apr 1999 18:30:59 +0100
Message-ID: <7eo6v0$ct5$1@news5.svr.pol.co.uk>


Hi,

With embedded SQL, to array fetch a statement like: select sal, ename
into :sal, :ename
from emp

you just declare your variables as arrays of a fixed length (say 100). Oracle will populate all 100 fields. The last fetch you have to find out yourself how many items were fetched. You can use the SQLCA to do this.

Gerrit-Jan Linker
http://members.aol.com/gjlinker Received on Sat Apr 10 1999 - 12:30:59 CDT

Original text of this message

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