我的错误讯息:
多部分标识符table2.ValidSince“无法绑定。
UPDATE table1 SET table1.ValidSince = table2.ValidSince WHERE table1.ID = '5C954C6F-FFD7-454A-9E2B-000076523819'
我需要如何更改更新才能使其正常工作?
您需要加入 table2
table2
UPDATE t1 SET t1.ValidSince = t2.ValidSince From Table1 t1 Join Table2 t2 on t1.PKCol = t2.PKCol WHERE t1.ID = '5C954C6F-FFD7-454A-9E2B-000076523819'