Zo *_*Has 8 c# datatable
我有一个数据表,其中包含一个数量列和一个状态列.我想只对那些状态为'1'的行求和.这该怎么做?我通过数据表计算方法对列进行求和.
the*_*ost 9
dataTable.Compute("sum(amount)", "status = 1")
归档时间:
15 年,2 月 前
查看次数:
6172 次
最近记录:
12 年 前