I have a query like this when I pass the values into in operator in sql it shows:
Conversion failed when converting the
varchar
value '3,4,9' to data typeint.
How can I solve the issue?
declare @values varchar(100)
set @values = '3,4,9'
select @values
select * from CmnItemType where ItemTypeID in (@values)