Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL Records/Tables
Dereck, depending on exactly what you want to do the manner in which an
application would walk through data varies.
PL/SQL does support collection data types. See the PL/SQL manual.
One type is a pl/sql table which is basically the single dimension array of procedural languages. A developer at our site wrote a VB program that received a pl/sql table back to the application so they can be used with applications (stored code called from application)
Unfortunately I do not have a good example on my home PC or a working Oracle installed but here are a couple of lines from the PL/SQL manual:
TYPE nested_type IS TABLE OF VARCHAR2(20); -- declare type
v1 nested_type; --allocate table (array)
Cursor variables are often used to pass data back to the application.
HTH -- Mark D Powell -- Received on Sat Mar 25 2006 - 18:44:31 CST