SQL Server: table variable used in a inner join -
What is the problem with SQL Can not use table variable in JOIN clause ?
error message "message 170, level 15, state1, line 8 line 8: 't1' has the wrong syntax."
@t table (Please declare _SportName) Include Varchar (50), _ long varchar (3)) @t values ('basketball', 'England') - Update in English TblSport t1 SET t1.SportName = @ t._SportName Join INNER tblSport ON (t1.Lang = @ T._Lang)
Thanks.
For your last statement:
update t1, temp SET T1.SportName = temp._SportName FROM TblSport Join AS T1 INNER @ AAS temporarily t1.Lang = temp._Lang
(requires exact syntax check)
Comments
Post a Comment