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: dbms_sql help

Re: dbms_sql help

From: <frank.van.bortel_at_gmail.com>
Date: 9 Mar 2006 07:18:26 -0800
Message-ID: <1141917506.858084.99260@z34g2000cwc.googlegroups.com>


Ehm... why do you wrap it in a function to begin with? I mean, you can just as well do
select * from emp;

instead of :
select my_pack.my_func from dual;
and have a function defined that will do the select * from emp.

Why all the hassle?
And with execute immediate (9i and up, not 8i), it would be: execute immediate ('select * from emp'); No cursor prepare, execute, bind, etc, you would use with dbms_sql.

In the link provided, execute immediate has examples, too. But usually this approach leads to non-scalable applications. Received on Thu Mar 09 2006 - 09:18:26 CST

Original text of this message

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