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 -> returning table rows from a stored proc through OCI

returning table rows from a stored proc through OCI

From: cdm <cdm_remarqNOcdSPAM_at_hotmail.com.invalid>
Date: Mon, 14 Feb 2000 00:30:32 -0800
Message-ID: <0a0e2cfe.3c4f08aa@usw-ex0102-015.remarq.com>


How do we bind a table of objects passed from a stored procedure in OCI?

Explanation:

  1. We created the necessary types in the Oracle database

create type [Record_Type] as object (...); create type [Table_Type] as table of [Record_Type];

2. In a stored procedure we have the table type as an OUT procedure. create procedure [new_procedure] ( arg_table out [Table_Type]
)
..

arg_table(1) := Record_Type(...);
arg_table(2) := Record_Type(...);
..

3. This is the problem; we want to call the stored procedure in (2) and bind to the arg_table parameter that is passed back to through the OCI interface. We need to access the individual records inside. Has anybody done anything like this?

Received on Mon Feb 14 2000 - 02:30:32 CST

Original text of this message

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