其实非常简单,看看这个对 northwind 的 freight 中,满足条件 freight > 100 ,所有行的汇总 sum(freight)

DataRow dr = dt.NewRow();
dr["freight"] = dt.Compute("sum(freight)", "freight > 100");

dt.Rows.Add(dr);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-12-27
  • 2021-05-29
猜你喜欢
  • 2022-12-23
  • 2021-11-06
  • 2021-06-27
  • 2021-05-29
  • 2021-10-02
  • 2021-10-10
  • 2021-07-07
相关资源
相似解决方案