我现在遇到这样一个问题, 
我的sql语句是 
select * from table1 where id in ('id1','id2','id3') 
如果使用参数,写成  
sqlCommand1.CommandText=@"select * from table1 where id in (@id_list)"; sqlCommand1.Parameters.Add("@id_list",SqlDbType.VarChar); 
sqlCommand1.Parameters["@id_list"].Value=@"'id1','id2','id3'"; 那么结果不正确,因为系统会认为我要查找的记录它的id为 'id1','id2','id3'而不是'id1','id2','id3'中的任意一个, 
所以我想知道在这种情况下该如何使用参数呢,不会是那种最苯的办法,有多少个可选项,就使用多少个参数吧,即sqlCommand1.CommandText=@"select * from table1 where id in (@id11,@id2,@id3)";