以下是我尝试运行的两个示例:
UPDATE db1..table1
SET tb1.newValue = lt1.udfvalue
FROM db2..lookup_table lt1,
db1..table1 tb1
WHERE lt1.ID = tb1.ID
AND lt1.userdefinedfieldtypename = 'Test'
UPDATE db1..table1
SET tb1.NUM=tb2.NUM
FROM db1..table1 tb1,
db1..table1 tb2
WHERE tb2.STATUS='Final'
and tb1.ID=tb2.ID
and tb1.STATUS='Revised'
and tb1.NUM is NULL
它与别名有关,但我现在没有想法。我怎样才能解决这个问题?谢谢