I would like to reference a variable as the criteria in a query. I want the
criteria to be as follows: in('A','B'). I would assume you set the variable
to equal this but I am doing something wrong
declare @exclusion varchar(255)
set @exclusion = ('A','B','C')
select * from table where code in @exclusion
Any thoughts would be appreciated,
Greg