In my table id column's datatype is int.
And I have a list of items' ids to be selected.
So, here is some piece of my code:
DECLARE @user_list
SELECT @user_list=(
SELECT user_list
FROM sometable
WHERE rowNum=xxx
);
SELECT *
FROM anotherTable
WHERE user_id IN(@user_list)
but it doesn't work, the error msg like :
can't convert varchar to int
Thanks!
 
     
     
     
     
    