sql中"where id in 集合",这个集合用什么表示,ArrayList还是int数组?我有一个sql要处理,用到了"where id in 集合",相当于批处理。
我之前建立了一个ArrayListArrayList ids = new ArrayList();
ids.Add("1");  // 注意,原代码中存的是字符串1,而不是数字1
ids.Add("2");...string sql = string.Format("update td set count = count +1 where id in {0}",ids);
有问题,请问该怎样处理这样的问题?