I have a problem with using "WHERE * IN ( ...... )" in sqlcommand ;
for exp;
Code:
select * from users where id in (1,2) // return 2 rows
but occur error when pass the "1,2" with parameters
Code:
declare @id nvarchar(3) set @id = '1,2' select * from users where id in (@id)
please help me to...
Leave a comment: