//使用聚合函数 max ,sum ,count .... private void ComputeBySalesSalesID(DataSet dataSet) { // Presumes a DataTable named "Orders" that has a column named "Total." DataTable table; table = dataSet.Tables["Orders"];
using System; using System.Collections.Generic; using System.Data; using System.Text; namespace Gzcms.Common { public class CreateTable { public static DataTable getTable() { //1.创建 datatable DataTable dt = new DataTable("datatable");//可以给表创建一