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
Post a Comment