久久久久久久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"的總和?在數據表中

        How can I get a sum for the column quot;piecesquot; in a datatable?(我怎樣才能得到列“pieces的總和?在數據表中?)
        • <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"的總和?在數據表中?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

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

                  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
                  

                  我的新數據表的結果應該是這樣的:

                  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());
                  }
                  

                  抱歉,我是新的數據庫開發人員,我的英語不太好.

                  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'");
                  

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

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

                  相關文檔推薦

                  What are good algorithms for vehicle license plate detection?(車牌檢測有哪些好的算法?)
                  onClick event for Image in Unity(Unity中圖像的onClick事件)
                  Running Total C#(運行總 C#)
                  Deleting a directory when clicked on a hyperlink with JAvascript.ASP.NET C#(單擊帶有 JAvascript.ASP.NET C# 的超鏈接時刪除目錄)
                  asp.net listview highlight row on click(asp.net listview 在單擊時突出顯示行)
                  Calling A Button OnClick from a function(從函數調用按鈕 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. 主站蜘蛛池模板: 在线āv视频 | 欧美一级黄带 | 欧美激情在线精品一区二区三区 | 国产成人叼嘿视频在线观看 | 欧美情趣视频 | 毛片一级片 | 国产成人精品综合 | 国产欧美日韩精品在线观看 | 中国av在线免费观看 | 国产精品免费一区二区三区四区 | www网站在线观看 | www视频在线观看 | 欧美精品久久久久久久久老牛影院 | 久久精品亚洲精品国产欧美 | 色综合99 | 日日夜夜草 | 欧美综合一区二区 | 国产成人99久久亚洲综合精品 | 国产麻豆一区二区三区 | 日韩欧美在线观看 | 国产欧美一级二级三级在线视频 | 亚洲午夜精品 | 一区二区国产精品 | 久久久免费观看视频 | 国产精品a久久久久 | 国产在线观看免费 | 一级黄色片网站 | 日韩中文在线观看 | 黄色毛片一级 | 欧美视频在线看 | 九九久久99| 欧美一区二不卡视频 | 少妇一级淫片免费放播放 | 欧美另类视频在线 | 国产精品久久久久久久久久久免费看 | 在线视频国产一区 | 99pao成人国产永久免费视频 | 在线看国产 | 一本大道久久a久久精二百 国产成人免费在线 | 特黄毛片 | 免费激情网站 |