Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Reg : Execute Immediate --

915396Oct 31 2012 — edited Nov 6 2012
Hi Experts,

I have a doubt regarding Dynamic queries & 'Execute Immediate'.

Scenario -
Suppose, I've an Insert statement and it has some string-aggregation being used.

Fyi - we used Tom Kytes 'STRAGG(distinct ...)' technique for aggregation.

Now if I put this INSERT stat inside my proc NOT as a Dynamic query, it throws err.
So, i had to put Execute Immediate.

Doubt -
Does performance gets affected if a SQL query is changed to Dynamic and then executed (using Execute Immediate) ??

Thanks in Advance.
Ranit B.

Database version -- 10.0
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2012
Added on Oct 31 2012
12 comments
360 views