Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: PL/SQL Function Calls

Re: PL/SQL Function Calls

From: Billy <vslabs_at_onwe.co.za>
Date: 7 Jun 2005 22:49:45 -0700
Message-ID: <1118209785.019571.91850@g43g2000cwa.googlegroups.com>


Mladen Gogala wrote:

> This is not really a problem because dynamic execution does not interact
> with the rest of the code. You have "execute immediate using" and that's
> that. That is one place where the execution takes place and not an "eval"
> type mechanism that you are asking for.

Don't understand your reasoning. PL/SQL allows you to make a dynamic call to static code and interact (via bind variables) with the code. PL/SQL allows you to create dynamic code and execute that.

> What does change the picture and where you were right and I was wrong are
> weak ref cursor variables. PL/SQL, unfortunately, cannot do anything like
> eval in Perl.

Not a Perl user myself, but if we're talking about standard eval functionality, then yes you can do it in PL/SQL. The following is in-line documentation from source code of an event system I wrote in PL/SQL. It takes any dynamic PL/SQL block that returns a boolean value, executes it and evaluates the result of the function.

PL/SQL is a formal programming language. And thus as capable as other formal programming languages. I think many sell PL/SQL short thinking of it ito "a macro for SQL".

--
Billy
Received on Wed Jun 08 2005 - 00:49:45 CDT

Original text of this message

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