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: Execute Immediate in PL/SQL (Oracle 8i)

Re: Execute Immediate in PL/SQL (Oracle 8i)

From: Greg Forestieri <gforestieri9_at_yahoo.com>
Date: 9 Jan 2003 05:38:10 -0800
Message-ID: <6a8cdd95.0301090538.67f5520a@posting.google.com>


IIRC *INTO* doesn't work well with native dynamic sql, which is what I think you are trying to do. Generally speaking you would return into a user defined record or some sort of thing instead. The INTO would then be outside the sql statement, with the user defined record (usually based upon your query return set) as the target.

execute immediate v_sql into user_record

where user_record might have x number of component columns

good luck Received on Thu Jan 09 2003 - 07:38:10 CST

Original text of this message

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