SyntaxFix
Write A Post
Hire A Developer
Questions
You need a table variable:
declare @values table ( Value varchar(1000) ) insert into @values values ('A') insert into @values values ('B') insert into @values values ('C') select blah from foo where myField in (select value from @values)