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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Tables in procedures?

Re: Tables in procedures?

From: Robert Devereaux <bobdev_at_fc.hp.com>
Date: 1997/11/24
Message-ID: <65cidr$rsq@fcnews.fc.hp.com>#1/1

Nils wrote:
: The following code is rejected as invalid... any ideas please, thanks:
 

: create or replace package body brochure is
: procedure broclist
: is
: TYPE v_table IS TABLE OF VARCHAR2(100) INDEX BY BINARY_INTEGER;
: tmp_table v_table;
:
: with the last line being the one rejected.

Try this:

create or replace package brochure as

   TYPE v_table IS TABLE OF VARCHAR2(100) INDEX BY BINARY_INTEGER;    tmp_table v_table;

   <<etc.>>

end brochure;

create or replace package body brochure is

       procedure broclist

       <<here, you can access tmp_table>>

end brochure;

--
Bob Devereaux
Software and Services Group R&D
HP Fort Collins
1-970-229-3423
Received on Mon Nov 24 1997 - 00:00:00 CST

Original text of this message

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