SQL的in的参数化查询
SqlCommand cmd=con.CreateCommand(); cmd.CommandText="exec('select * from novel where novelid in ('+@s+')')"; cmd.Parameters.Add("@s","'13030,12581'");
SqlCommand cmd=con.CreateCommand(); cmd.CommandText="exec('select * from novel where novelid in ('+@s+')')"; cmd.Parameters.Add("@s","'13030,12581'");