I think 
  ' begin
>   mystorageArray.field_''i'' := 1;
>   end; ';

will not recongize mystoragearray as a variable . 

-ak


----- Original Message ----- 
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]>
Sent: Thursday, October 09, 2003 11:49 AM


> Im on 8.1.7. Is it possible to do something like this? Im getting errors:
> 
> create or replace procedure myproc is
>    TYPE myRecord is RECORD (
>      field_1 number,
>      field_2 number);
>   TYPE storageArray IS TABLE OF myRecord
>     INDEX BY BINARY_INTEGER;
>     myStorageArray storageArray;
>    i number;
> begin
>  i := 1;
> execute immediate 
>    ' begin
>   mystorageArray.field_''i'' := 1;
>   end; ';
> end;
> /
> 
> -- 
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> -- 
> Author: <[EMAIL PROTECTED]
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
> 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: AK
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to