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 -> any difference in term of performance

any difference in term of performance

From: Daud <daud11_at_hotmail.com>
Date: 22 Mar 2004 04:44:24 -0800
Message-ID: <f0bf3cc3.0403220444.361cb553@posting.google.com>

Hi

I came across this code inside a stored procedure written by one of our developers.

----start----
sql_stmt := 'select t.column_one, t.column_two
             from my_table t
             where t.column_pk = :1';

execute immediate sql_stmt
into tmpC1, tmpC2
using varPK;

----end-----

I would normally just write it as:

----start----
select t.column_one, t.column_two
into tmpC1, tmpC2
from my_table t
where t.column_pk = varPK;

----end-----

Is there any difference in term of performance for the 2 methods above?
If yes, which is faster and why?

regards
Daud

---------------------------
Oracle 8.1.7.4 on HPUX 11.0
---------------------------
Received on Mon Mar 22 2004 - 06:44:24 CST

Original text of this message

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