The following query works :
Declare @Product varchar(max) = '0022'
select *
from Prod
where ProdId in (@Product)
The following also works :
select *
from Prod
where ProdId in (0022,0033)
But the below doesn't work :
Declare @Product varchar(max) = '0022,0033'
select *
from Prod
where ProdId in (@Product)
What am I doing wrong ? How can I fix it ?