这是我的SQL语句:
UPDATE sysdba.CONTACT, sysdba.ADDRESS
SET sysdba.ADDRESS.Address1 = '123 Tech Parway'
WHERE sysdba.CONTACT.AddressID = sysdba.ADDRESS.AddressID
AND sysdba.CONTACT.contactID = 'CRBD'
这里有什么问题?
答案 0 :(得分:7)
TSQL解决方案
UPDATE sysdba.ADDRESS
SET Address1 = '123 Tech Parway'
FROM sysdba.ADDRESS
INNER JOIN sysdba.CONTACT
ON sysdba.CONTACT.AddressID = sysdba.ADDRESS.AddressID
WHERE sysdba.CONTACT.contactID = 'CRBD'
答案 1 :(得分:0)
根据MySQL UPDATE command reference,我看不出这种语法有任何问题。也许你从MSSQLServer得到错误?您能否提供错误以供进一步调查?