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: Declaring a global table in PL/SQL

Re: Declaring a global table in PL/SQL

From: William Robertson <william.robertson_at_bigfoot.com>
Date: 4 Aug 2005 00:25:29 -0700
Message-ID: <1123140329.807718.24650@g44g2000cwa.googlegroups.com>


absinth wrote:
> Why can't I have?
>
> CREATE OR REPLACE PACKAGE BODY test AS
> TYPE test_table IS TABLE OF VARCHAR2(30)
> INDEX BY VARCHAR2(2);
>
> DEMO_TABLE test_table;
> DEMO_TABLE('NO') := 'No';
>
> END test;
> /

Er, you can. Associative arrays were introduced back in 9i. You just need a supported version of Oracle and a BEGIN keyword ;-) Received on Thu Aug 04 2005 - 02:25:29 CDT

Original text of this message

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