SyntaxFix
Write A Post
Hire A Developer
Questions
If you bracket the @ you can use it directly
declare @TEMP table (ID int, Name varchar(max)) insert into @temp values (1,'one'), (2,'two') SELECT * FROM @TEMP WHERE [@TEMP].[ID] = 1