Title: RE: interesting dynamic pl/sql question

Ryan,

what errors are you getting?

Raj
--------------------------------------------------------------------------------
Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !


-----Original Message-----
From: Igor Neyman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 09, 2003 4:14 PM
To: Multiple recipients of list ORACLE-L
Subject: RE: interesting dynamic pl/sql question


You should be getting errors, because PL/SQL inside "execute immediate"
knows nothing about "mystorageArray" (or "i" for that matter) declared
in your stored procedure.
Probably, you could get by using "package" variables (and referring to
them properly: package_name.var_name, specifically inside your dynamic
sql).

Igor Neyman, OCP DBA
[EMAIL PROTECTED]



-----Original Message-----
[EMAIL PROTECTED]
Sent: Thursday, October 09, 2003 1:49 PM
To: Multiple recipients of list ORACLE-L

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: Igor Neyman
  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).



**************************************************************************************
This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.
**************************************************************************************5

Reply via email to