Join multiple DataRows into a single DataRow

前端 未结 4 1732
轻奢々
轻奢々 2021-01-26 09:15

I am writing this in C# using .NET 3.5. I have a System.Data.DataSet object with a single DataTable that uses the following schema:

Id      :  uint
AddressA:  s         


        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-26 10:03

    most efficient solution would be to do the sum in SQL directly

    select AddressA, SUM(bytes) from ... group by AddressA

提交回复
热议问题