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

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

      <legend id='8yLLq'><style id='8yLLq'><dir id='8yLLq'><q id='8yLLq'></q></dir></style></legend>

        • <bdo id='8yLLq'></bdo><ul id='8yLLq'></ul>
        <tfoot id='8yLLq'></tfoot>

        <small id='8yLLq'></small><noframes id='8yLLq'>

      1. 帶有 for 循環的 xquery 中的 SQL Server 性能

        SQL Server performance in xquery with for loop(帶有 for 循環的 xquery 中的 SQL Server 性能)
        <legend id='N1Vol'><style id='N1Vol'><dir id='N1Vol'><q id='N1Vol'></q></dir></style></legend>

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

            • <bdo id='N1Vol'></bdo><ul id='N1Vol'></ul>
              <tfoot id='N1Vol'></tfoot>

            • <small id='N1Vol'></small><noframes id='N1Vol'>

                <tbody id='N1Vol'></tbody>

                  本文介紹了帶有 for 循環的 xquery 中的 SQL Server 性能的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個帶有 xml 列的 sql 表,它保存的值類似??于以下 xml 格式

                  I have one sql table with xml column, which holds the value like following xml format

                  <Security xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                    <Dacl>
                      <ACEInformation>
                        <UserName>Authenticated Users</UserName>
                        <Access>Allow</Access>
                        <IsInherited>false</IsInherited>
                        <ApplyTo>This object only</ApplyTo>
                        <Permission>List Contents</Permission>
                        <Permission>Read All Properties</Permission>
                        <Permission>Read Permissions</Permission>
                      </ACEInformation>
                      <ACEInformation>
                        <UserName>Local System</UserName>
                        <Access>Allow</Access>
                        <IsInherited>false</IsInherited>
                        <ApplyTo>This object only</ApplyTo>
                        <Permission>Read All Properties</Permission>
                        <Permission>Read Permissions</Permission>
                      </ACEInformation>
                    </Dacl>
                  </Security>
                  

                  在這里,我想從這樣的 xml 列中獲取輸出

                  Here, I would like get output from xml column like this

                  [ Allow -> Authenticated Users -> List Contents;讀取所有屬性;讀取權限;-> 僅此對象 ]

                  為了實現這一點,我使用以下 for 循環查詢來連接值

                  To achieve this, I am using following for loop query to join values

                  SELECT  xmlColumn.query('for $item in/Security/Dacl/ACEInformation return("[",data($item/Access)
                  [1],"->",data($item/UserName)[1],"->", (for $item2 in $item/Permission return concat($item2,";")),"-
                  >",data($item/ApplyTo)[1],"]")').value('.','NVARCHAR(MAX)')+' ; ' From myTable
                  

                  查詢工作正常,但給出結果花費了太多時間,對于 1000 行,需要 2 分鐘...誰能幫助我提高此查詢的性能?

                  The query is working fine, but it takes too much time to give result, for 1000 rows, it is taking 2 mins...can anyone help me to improve performance of this query?.

                  推薦答案

                  select (
                         select '['+
                                   A.X.value('(Access/text())[1]', 'nvarchar(max)')+
                                   '->'+
                                   A.X.value('(UserName/text())[1]', 'nvarchar(max)')+
                                   '->'+
                                   (
                                   select P.X.value('(./text())[1]', 'nvarchar(max)')+';'
                                   from A.X.nodes('Permission') as P(X)
                                   for xml path(''), type
                                   ).value('text()[1]', 'nvarchar(max)')+
                                   '->'+
                                   A.X.value('(ApplyTo/text())[1]', 'nvarchar(max)')+
                                 ']'
                         from T.xmlColumn.nodes('/Security/Dacl/ACEInformation') as A(X)
                         for xml path(''), type
                         ).value('text()[1]', 'nvarchar(max)')
                  from myTable as T
                  

                  這篇關于帶有 for 循環的 xquery 中的 SQL Server 性能的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產品、類別和元數據的 SQL 查詢 woocommerce/wordpress)
                  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?)
                  <i id='EcxF4'><tr id='EcxF4'><dt id='EcxF4'><q id='EcxF4'><span id='EcxF4'><b id='EcxF4'><form id='EcxF4'><ins id='EcxF4'></ins><ul id='EcxF4'></ul><sub id='EcxF4'></sub></form><legend id='EcxF4'></legend><bdo id='EcxF4'><pre id='EcxF4'><center id='EcxF4'></center></pre></bdo></b><th id='EcxF4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='EcxF4'><tfoot id='EcxF4'></tfoot><dl id='EcxF4'><fieldset id='EcxF4'></fieldset></dl></div>

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

                      <tbody id='EcxF4'></tbody>
                      <tfoot id='EcxF4'></tfoot>

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

                        <legend id='EcxF4'><style id='EcxF4'><dir id='EcxF4'><q id='EcxF4'></q></dir></style></legend>

                            主站蜘蛛池模板: 日韩三级免费网站 | 懂色tv | 色婷婷婷婷色 | 91精品久久久久久久久久入口 | av官网在线 | 国产一区二区三区视频在线观看 | 欧美精品福利 | 久久久99国产精品免费 | 日韩久久久久 | 日韩av在线一区 | 国产一区二区三区高清 | 国产精品久久久久久久久图文区 | 九九热在线精品视频 | 国产成人综合av | 日本在线综合 | 91毛片在线看| 日韩一区二区在线观看 | 国产一区不卡 | 日皮视频免费 | 99reav| 天天久久 | 免费观看黄 | 99精品视频一区二区三区 | 精品视频在线一区 | 欧美小视频在线观看 | 国产精品免费一区二区三区四区 | 亚洲国产精品久久久久秋霞不卡 | www.色综合 | 久久久久av | 国产精品久久毛片av大全日韩 | 国产精品久久午夜夜伦鲁鲁 | 欧美大片黄| 亚洲一区国产精品 | 91视频正在播放 | 手机看黄av免费网址 | 自拍视频国产 | 黄网站在线播放 | 99国产精品99久久久久久粉嫩 | 成年人精品视频在线观看 | 精品国产91亚洲一区二区三区www | 久久99精品久久久久久 |