sql server - Error near Where in SQL command -
i have following code update 2 columns 2 tables. error near 'where'. but, don't see error in doing same. ? :)
update mp set mi.accountid = ad.accountid [gsf].[dbo].[metainformation] mi inner join [gsf].[dbo].[allocationdetails] ad mi.accountdetailid = ad.accountdetailid
you need on specify join condition:
update mi set accountid = ad.accountid [gsf].[dbo].[metainformation] mi inner join [gsf].[dbo].[allocationdetails] ad on mi.accountdetailid = ad.accountdetailid you can't specify rowset alias on left hand side of assignment in set clause.
Comments
Post a Comment