//把DataTable的某一列转化为逗号分隔字符串 private static string DataTableColumnSplit(DataTable dataTable,string strColumn) { int[] idInts = dataTable.AsEnumerable().Select(d => d.Field<int>(strColumn)).ToArray(); return String.Join(",", idInts); }