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 -> Oracle's update statement

Oracle's update statement

From: <tonixlaw_at_gmail.com>
Date: 3 Nov 2006 08:52:26 -0800
Message-ID: <1162572745.889545.158970@m7g2000cwm.googlegroups.com>


Hi all,

I am trying to partially update a table based on a heavy query.

If I use following update:

update

        table_A
set

(ColA, ColB) =
(select ColA, ColB

	from heavy_query_B alias_B
	where id = table_A.id)
where
	exists

(select *
from heavy_query_B alias_B where id = table_A.id)

It would be extremely slow. The "where" clause is required to avoid updating unwanted rows in table_A, however i think it's one of the problems that impact performance.

Any idea that could help?

Thanks a lot! Received on Fri Nov 03 2006 - 10:52:26 CST

Original text of this message

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