Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
276 views
in Technique[技术] by (71.8m points)

mainframe - Is there any way update using join in db2

UPDATE TB1 TB
SET TB.DEBITED_AMT = TB.CHECK_AMOUNT
WHERE EXISTS
(
SELECT MASTER_ID
FROM TR1 TR
where TR.COATER_CODE = '010'
AND TR.MASTER_ID = '989778888'
AND TR.TRX_CODE = 'AB'
AND TR.DIS_IND ='S'
);

I Used this code but only tb1 row fetched but not synced with tr2...master_id is prmary_key here

question from:https://stackoverflow.com/questions/66064235/is-there-any-way-update-using-join-in-db2

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...