久久久久久久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>
                            主站蜘蛛池模板: 婷婷久久一区 | 草久久久| 欧美成人一区二区 | 一区二区国产在线观看 | 2一3sex性hd | 欧美精品91| 中文字幕久久久 | 国产精品一区二区欧美 | 精品国产欧美在线 | 伊大人久久 | 精品在线播放 | 亚洲 欧美 在线 一区 | 一级在线毛片 | aa级毛片毛片免费观看久 | 五月综合激情婷婷 | 男女视频在线观看 | 伊人电影院av | 91av视频在线| 91精品久久久久久久久中文字幕 | 久久久久国产精品午夜一区 | 日韩成人影院在线观看 | 特黄特色大片免费视频观看 | 久久爱综合 | 免费在线观看成人av | 国产四区 | 久久久久久黄 | 激情欧美一区二区三区中文字幕 | 蜜桃av一区二区三区 | 亚洲精品9999久久久久 | 精品综合在线 | 视频一区二区在线观看 | 久久久久久免费看 | 99久久精品免费看国产高清 | 丝袜美腿一区 | 久久久久亚洲 | 精品一区二区三区在线观看 | 亚洲欧美日韩一区二区 | 欧美a级网站 | 色视频在线免费观看 | 97精品久久| 性欧美精品一区二区三区在线播放 |