sql server - SQL Update after INNER JOIN two tables -


i update 2 tables on same update statement inner join cant attach second table

update t1 set t1.status='test1', t2.status='test1'  mytable1 t1  inner join table2 t2 on t1.id=t2.id  parameters..... 

but cant use t2.status='test1' error getting

the multi-part identifier "t2.status" not bound.

you can't update 2 tables in single update statement, if using join clause. join clause can used "filtering" purposes only. table can updated.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -