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!

Exists Vs IN in Update Query

455014Mar 16 2006 — edited Mar 16 2006
Hi,

The comparison is on basis of performance. There are billions of records to be processed and millions to be updated.

Please go through the folowing queried to have general idea because the actual query is 2 page long.

Update table1
set column=( select query)
where exists (select 1 from table2 where table2.item = table1.item)


Vs


Update table1
set column=( select query)
where (item) IN (select item from table2 )


Please give inputs in term of performance.

Both of these queried have same execution plan But I have worried about the hard parse and other parameters that can make huge difference in performance.

Regards
Nitin Bajaj
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 13 2006
Added on Mar 16 2006
1 comment
294 views