久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <small id='cYdJ4'></small><noframes id='cYdJ4'>

      • <bdo id='cYdJ4'></bdo><ul id='cYdJ4'></ul>
    2. <legend id='cYdJ4'><style id='cYdJ4'><dir id='cYdJ4'><q id='cYdJ4'></q></dir></style></legend>
    3. <i id='cYdJ4'><tr id='cYdJ4'><dt id='cYdJ4'><q id='cYdJ4'><span id='cYdJ4'><b id='cYdJ4'><form id='cYdJ4'><ins id='cYdJ4'></ins><ul id='cYdJ4'></ul><sub id='cYdJ4'></sub></form><legend id='cYdJ4'></legend><bdo id='cYdJ4'><pre id='cYdJ4'><center id='cYdJ4'></center></pre></bdo></b><th id='cYdJ4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='cYdJ4'><tfoot id='cYdJ4'></tfoot><dl id='cYdJ4'><fieldset id='cYdJ4'></fieldset></dl></div>

        <tfoot id='cYdJ4'></tfoot>

        我怎樣才能得到列“pieces"的總和?在數(shù)據(jù)表中

        How can I get a sum for the column quot;piecesquot; in a datatable?(我怎樣才能得到列“pieces的總和?在數(shù)據(jù)表中?)
        • <legend id='2uhwh'><style id='2uhwh'><dir id='2uhwh'><q id='2uhwh'></q></dir></style></legend>
          <i id='2uhwh'><tr id='2uhwh'><dt id='2uhwh'><q id='2uhwh'><span id='2uhwh'><b id='2uhwh'><form id='2uhwh'><ins id='2uhwh'></ins><ul id='2uhwh'></ul><sub id='2uhwh'></sub></form><legend id='2uhwh'></legend><bdo id='2uhwh'><pre id='2uhwh'><center id='2uhwh'></center></pre></bdo></b><th id='2uhwh'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2uhwh'><tfoot id='2uhwh'></tfoot><dl id='2uhwh'><fieldset id='2uhwh'></fieldset></dl></div>

          <small id='2uhwh'></small><noframes id='2uhwh'>

          1. <tfoot id='2uhwh'></tfoot>

            • <bdo id='2uhwh'></bdo><ul id='2uhwh'></ul>
                  <tbody id='2uhwh'></tbody>

                  本文介紹了我怎樣才能得到列“pieces"的總和?在數(shù)據(jù)表中?的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  如何獲得數(shù)據(jù)表中pieces"列的總和?假設(shè)我有下表.如何計(jì)算 article="milk" 和 artno="15" 的總"件數(shù)?

                  How can I get a sum for the column "pieces" in a datatable? Say I had the following table. How can I calculate the "total" pieces for article="milk" and artno="15"?

                  Columns:   article     artno    pieces
                  Rows:
                  1          milk        15       1
                  2          water       12       1
                  3          apple       13       2
                  4          milk        15       1
                  5          milk        16       1
                  6          bread       11       2
                  7          milk        16       4
                  

                  我的新數(shù)據(jù)表的結(jié)果應(yīng)該是這樣的:

                  The Result of the my new DataTable should be this:

                  Columns:   article     artno    pieces
                  Rows:
                  1          bread       11       2
                  2          water       12       1
                  3          apple       13       2
                  4          milk        15       2
                  5          milk        16       5
                  

                  我的代碼:

                  foreach (DataRow foundDataRow in foundRows1)
                  {
                      int i = 0;
                      foreach (DataRow dataRow in foundRows2)
                      {
                          if (object.Equals(dataRow.ItemArray[0], foundDataRow.ItemArray[0])
                              && object.Equals(dataRow.ItemArray[3], foundDataRow.ItemArray[3]))
                          {
                              i = i + Convert.ToInt16(dataRow.ItemArray[4]);
                          }
                      }
                      Debug.Print(i.ToString());
                  }
                  

                  抱歉,我是新的數(shù)據(jù)庫(kù)開(kāi)發(fā)人員,我的英語(yǔ)不太好.

                  Sorry, but i'm new DataBase developer and my english speak language is not so good.

                  推薦答案

                  使用 DataTable.Compute 方法,你可以這樣做:

                  Using the DataTable.Compute method, you can do:

                  int sum = (int)table.Compute("Sum(pieces)", "article = 'milk' AND artno='15'");
                  

                  這篇關(guān)于我怎樣才能得到列“pieces"的總和?在數(shù)據(jù)表中?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測(cè)有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運(yùn)行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時(shí)刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時(shí)突出顯示行)
                  Calling A Button OnClick from a function(從函數(shù)調(diào)用按鈕 OnClick)

                          <tbody id='ffRDV'></tbody>
                        <i id='ffRDV'><tr id='ffRDV'><dt id='ffRDV'><q id='ffRDV'><span id='ffRDV'><b id='ffRDV'><form id='ffRDV'><ins id='ffRDV'></ins><ul id='ffRDV'></ul><sub id='ffRDV'></sub></form><legend id='ffRDV'></legend><bdo id='ffRDV'><pre id='ffRDV'><center id='ffRDV'></center></pre></bdo></b><th id='ffRDV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ffRDV'><tfoot id='ffRDV'></tfoot><dl id='ffRDV'><fieldset id='ffRDV'></fieldset></dl></div>
                          <bdo id='ffRDV'></bdo><ul id='ffRDV'></ul>

                          <small id='ffRDV'></small><noframes id='ffRDV'>

                          <legend id='ffRDV'><style id='ffRDV'><dir id='ffRDV'><q id='ffRDV'></q></dir></style></legend>
                          <tfoot id='ffRDV'></tfoot>

                          1. 主站蜘蛛池模板: 午夜国产一级 | www日日日 | 日韩精品免费一区 | 久久久www成人免费无遮挡大片 | 免费成人毛片 | 国产精品久久久久久久久久久新郎 | 成人精品一区二区 | 国产资源在线播放 | 久久久久国产一区二区 | 天天操夜夜操免费视频 | 一级a性色生活片久久毛片波多野 | 精品国产视频在线观看 | 国产日韩欧美 | 最新国产精品视频 | 国产精品中文字幕在线播放 | 国产精品久久久久久久免费观看 | 黄色网址免费看 | 成人在线免费网站 | 亚洲精品一二三区 | 一区二区在线免费观看视频 | 日韩欧美中文字幕在线观看 | 日韩免| 成人亚洲精品久久久久软件 | 日本在线免费视频 | 精品欧美一区二区精品久久久 | 精品伦精品一区二区三区视频 | 久久久久久高潮国产精品视 | 日韩成人免费视频 | 亚洲综合色视频在线观看 | 国产在线精品一区 | 犬夜叉在线观看 | 成人在线影视 | 国产精品1区 | 亚洲黄色片免费观看 | 一级片av | 午夜国产一级 | 亚洲97| 日韩美香港a一级毛片免费 国产综合av | 精精国产xxxx视频在线 | 东方伊人免费在线观看 | 精品国产伦一区二区三区观看方式 |