我想DataTable
根据条件使用 sum 或 average 将 s 合并到列表中。例如:
private DataTable getData(List<DataTable> datas, string[] KeyColumnNames, string valueCol)
{
List<DataTable> dataTables = datas;
//if datas has 3 dataTables in it : dt1, dt2, dt3
// then I want to create another dataTable dtAll which will have the sum of
// valueCol of all three datatables for the row which will be conditioned using
// KeyColumnNames (can be multiple Primary keys)
return dataTable;
}
将所有数据表视为完全相同但不同的值,因为它们是来自相似模式但不同数据中心的表。谢谢。