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

    • <bdo id='HZnLp'></bdo><ul id='HZnLp'></ul>

    <legend id='HZnLp'><style id='HZnLp'><dir id='HZnLp'><q id='HZnLp'></q></dir></style></legend>
  • <small id='HZnLp'></small><noframes id='HZnLp'>

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

      1. <tfoot id='HZnLp'></tfoot>

        從 sum 中刪除一個 xml 節點,在 XPath 到 SQL Server

        Eliminate a xml node from sum, in XPath to SQL Server XML column(從 sum 中刪除一個 xml 節點,在 XPath 到 SQL Server XML 列中)
        <tfoot id='6LWpA'></tfoot><legend id='6LWpA'><style id='6LWpA'><dir id='6LWpA'><q id='6LWpA'></q></dir></style></legend>
          <bdo id='6LWpA'></bdo><ul id='6LWpA'></ul>
          <i id='6LWpA'><tr id='6LWpA'><dt id='6LWpA'><q id='6LWpA'><span id='6LWpA'><b id='6LWpA'><form id='6LWpA'><ins id='6LWpA'></ins><ul id='6LWpA'></ul><sub id='6LWpA'></sub></form><legend id='6LWpA'></legend><bdo id='6LWpA'><pre id='6LWpA'><center id='6LWpA'></center></pre></bdo></b><th id='6LWpA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='6LWpA'><tfoot id='6LWpA'></tfoot><dl id='6LWpA'><fieldset id='6LWpA'></fieldset></dl></div>

              1. <small id='6LWpA'></small><noframes id='6LWpA'>

                  <tbody id='6LWpA'></tbody>

                  本文介紹了從 sum 中刪除一個 xml 節點,在 XPath 到 SQL Server XML 列中的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有這個 XPath 表達式,它對最深的 XML 層次結構中的所有節點求和,而不使用節點名稱:

                  I have this XPath expression, which sum all nodes in the deepest XML hierarchy, without using nodes names:

                  select  @data.value('sum(//*[not(*)])', 'float')
                  

                  如何根據名稱對一個節點進行例外處理?

                  How do I make an exception of one node, by its name?

                  說這是xml:

                  <c>
                    <b1>
                      <a>1</a>
                      <d>4</d>
                      <g>5</g>
                   </b1>
                   <b1>
                     <a>7</a>
                     <d>1</d>
                     <g>2</g>
                   </b1>
                  </c>
                  

                  我希望總和包含d"和g",沒有a",但a"將作為參數傳遞,因此需要在表達式中表示為參數.我嘗試了以下方法:

                  I would like the sum to contain "d" and "g", without "a", but "a" will be pass as parameter and so need to be represented as parameter inside the expression. I've tried the following:

                  declare @except varchar(max) = 'a'
                  
                  
                  select  @data.value('sum(//*[not(*)])', 'float') - @data.value('sum(//*:local-name()=sql:variable("@except"))', 'float')
                  

                  但沒有成功.

                  推薦答案

                  雖然 Marc 的回答是我最會做的,但我有一個小技巧給你,下面

                  While Marc's answer is what i would do mostly, I have a small hack for you, below

                  select  @data.value('sum(//*[not(*)])', 'float')- @data.value('sum(//*:a)', 'float')
                  

                  這篇關于從 sum 中刪除一個 xml 節點,在 XPath 到 SQL Server XML 列中的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數據庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發
                  How to create a login to a SQL Server instance?(如何創建對 SQL Server 實例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現“數據類型轉換錯誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                  WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)
                  <i id='6DbOP'><tr id='6DbOP'><dt id='6DbOP'><q id='6DbOP'><span id='6DbOP'><b id='6DbOP'><form id='6DbOP'><ins id='6DbOP'></ins><ul id='6DbOP'></ul><sub id='6DbOP'></sub></form><legend id='6DbOP'></legend><bdo id='6DbOP'><pre id='6DbOP'><center id='6DbOP'></center></pre></bdo></b><th id='6DbOP'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='6DbOP'><tfoot id='6DbOP'></tfoot><dl id='6DbOP'><fieldset id='6DbOP'></fieldset></dl></div>
                    <bdo id='6DbOP'></bdo><ul id='6DbOP'></ul>
                      <tbody id='6DbOP'></tbody>

                    <small id='6DbOP'></small><noframes id='6DbOP'>

                    • <legend id='6DbOP'><style id='6DbOP'><dir id='6DbOP'><q id='6DbOP'></q></dir></style></legend>

                          • <tfoot id='6DbOP'></tfoot>
                            主站蜘蛛池模板: 曰韩一二三区 | 91久久夜色 | 欧美日韩免费一区二区三区 | 在线视频三区 | 在线亚洲免费视频 | 亚洲午夜小视频 | 成人二区| 国产高清精品一区二区三区 | 国产精品欧美一区二区三区不卡 | 免费国产一区二区 | 欧美一级www片免费观看 | 亚洲精品国产电影 | 久久国产精品视频 | 国产日韩欧美另类 | 在线观看免费av片 | 久久久久久久夜 | 成人欧美一区二区三区黑人孕妇 | 午夜男人视频 | av在线播放一区二区 | 亚洲欧美另类在线 | 精品国产乱码久久久久久蜜臀 | 欧美狠狠操 | 日韩影院在线 | 日韩精品一区二 | 欧美一区二区三区在线播放 | 国产成人精品一区二区三区网站观看 | 在线观看成年人视频 | 一区精品在线观看 | 羞羞视频网站免费看 | 国产精品久久一区二区三区 | 亚洲精品久久久久久国产精华液 | 久久综合成人精品亚洲另类欧美 | 午夜午夜精品一区二区三区文 | 国产三区av | 中文字幕1区2区3区 日韩在线视频免费观看 | 国产欧美一区二区三区在线看 | 91久久夜色精品国产网站 | 日韩午夜一区二区三区 | 欧美特级黄色 | 资源首页二三区 | 成人毛片视频免费 |