如果获取一个表列的最大值..DataRow[] drs = ds.Tables["a"].Select("Quantity = MAX(Quantity)");
如果获取一个表列的最大值..
if (drs.Length > 0)
如果获取一个表列的最大值.. Console.WriteLine(drs[
0]["Quantity"]);
如果获取一个表列的最大值..Dim dt As DataTable = CType(DataGrid1.DataSource, DataTable)
如果获取一个表列的最大值..        
Dim dr As DataRow() = dt.Select("2>1""id Desc")
如果获取一个表列的最大值..        Debug.
WriteLine(dr(0).Item("ID"))
如果获取一个表列的最大值..

相关文章: