Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Multi row update in one SQL statement
I have the following two tables :
table a
(commit_id,
capital_market_id,
chg_lst_date
)
table b
(b_seq_id,
commit_id,
capital_market_id,
chg_lst_date
)
commit_id is PK in A but not in B. B can have multiple entries per commit_id.
I want to update all entries in table A - set the capital_market_id and chg_lst_date - from the corresponding commit_id entry in table B with the following two rules :
Can I do this in one update statement? or do I have to do a cursor/loop ? Received on Fri Jul 25 2003 - 11:56:02 CDT
![]() |
![]() |