sql server - can't abbreviate in SQL? -
i'm trying update across 2 tables.
update agr_admin.apiaries_20160920_updatetest sde join agr_admin.apiariestempfromplants plants on sde.locationid = plants.locationid set sde.longtitude = plants.longtitude sde.locationid = plants.locationid , sde.objectid = 1;
i'm getting:
msg 102, level 15, state 1, line 1
incorrect syntax near 'sde'.
what what? why abbreviation problem? in advance!
based on error message,i believe sql server
modify query below
update sde set sde.longtitude=plants.longtitude agr_admin.apiaries_20160920_updatetest sde join agr_admin.apiariestempfromplants plants on sde.locationid=plants.locationid sde.locationid=plants.locationid , sde.objectid=1;
you not using right syntax ,that's it..below syntax
update { { table_alias | <object> | rowset_function_limited } | @table_variable }
you using join
Comments
Post a Comment