03/11/03 22:42
>>228
お返事ありがとうございます。
ネットで調べまくったら見つかりましたが、こういうことですよね?
この例はORACLEのようなのですが、DB2やDB2/400 などでも
同じことはできるのでしょうか?(ORACLE質問スレなのにすいません)
update kprod p
set p.price =
(select new.price from knewprice new
where new.prodno = p.prodno
)
where exists
(select 'x' from knewprice new
where new.prodno = p.prodno
);