获得DataTable中某列最大值的方法 不用sql

方法1:DataTable table;
table = dataSet.Tables["table1"];
object o= table.Compute("max(sine)", "");

 

方法2:object max = table.Select().Max(p => p["sine"]);

posted @ 2012-09-17 18:30  Cad人生  阅读(623)  评论(0编辑  收藏  举报