Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Update statement using a join on a materialized view

Re: Update statement using a join on a materialized view

From: Malcolm Dew-Jones <yf110_at_vtn1.victoria.tc.ca>
Date: 14 Mar 2006 12:17:40 -0800
Message-ID: <441724e4@news.victoria.tc.ca>


Andy (andrewfaseuk_at_hotmail.com) wrote:

: update (
: select table_A_parameter as param_to_update
: from Table_A, Table_B, Materialized_View_C
: where Table_A.unique_key_A = Materialized_View_C.unique_key_A
: and Materialized_View_C.unique_key_B = Table_B.unique_key_B
: and Table_B.table_B_parameter = 'X'
: ) set param_to_update = Y;

I guess you could use a pl/sql block and loop over the select and then update just the one table that is actually being updated. Received on Tue Mar 14 2006 - 14:17:40 CST

Original text of this message

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