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

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -