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: SQL fast, PL/SQL slow, optimizer confused.

Re: SQL fast, PL/SQL slow, optimizer confused.

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Tue, 24 Feb 2004 14:32:11 -0800
Message-ID: <1077661892.375991@yasure>


Ed Avis wrote:

> Stephan Bressler <sbresslerx_no_spam_at_arcor.de> writes:
>
>

>>pl/sql always uses bind veriables, even explicit values are
>>translated into bind variables. This might give the optimizer fewer
>>information about the cardinality of the index access.

>
>
> Is this true even for 'execute immediate'?

Not at all. For dynamic SQL use the USING clause.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Tue Feb 24 2004 - 16:32:11 CST

Original text of this message

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