pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    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="3drj5vf" 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="ldbflfv" 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="pfd75ht" 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>

                            主站蜘蛛池模板: 热镀锌槽钢|角钢|工字钢|圆钢|H型钢|扁钢|花纹板-天津千百顺钢铁贸易有限公司 | 沈阳网站建设_沈阳网站制作_沈阳网页设计-做网站就找示剑新零售 沈阳缠绕膜价格_沈阳拉伸膜厂家_沈阳缠绕膜厂家直销 | 游泳池设计|设备|配件|药品|吸污机-东莞市太平洋康体设施有限公司 | 报警器_家用防盗报警器_烟雾报警器_燃气报警器_防盗报警系统厂家-深圳市刻锐智能科技有限公司 | 定时排水阀/排气阀-仪表三通旋塞阀-直角式脉冲电磁阀-永嘉良科阀门有限公司 | 变色龙PPT-国内原创PPT模板交易平台 - PPT贰零 - 西安聚讯网络科技有限公司 | 环压强度试验机-拉链拉力试验机-上海倾技仪器仪表科技有限公司 | 隧道风机_DWEX边墙风机_SDS射流风机-绍兴市上虞科瑞风机有限公司 | 贵阳用友软件,贵州财务软件,贵阳ERP软件_贵州优智信息技术有限公司 | MOOG伺服阀维修,ATOS比例流量阀维修,伺服阀维修-上海纽顿液压设备有限公司 | 信阳网站建设专家-信阳时代网联-【信阳网站建设百度推广优质服务提供商】信阳网站建设|信阳网络公司|信阳网络营销推广 | 瓶盖扭矩测试仪-瓶盖扭力仪-全自动扭矩仪-济南三泉中石单品站 | 消电检公司,消电检价格,北京消电检报告-北京设施检测公司-亿杰(北京)消防工程有限公司 | 河南15年专业网站建设制作设计,做网站就找郑州启凡网络公司 | 粘度计NDJ-5S,粘度计NDJ-8S,越平水分测定仪-上海右一仪器有限公司 | 日本SMC气缸接头-速度控制阀-日本三菱伺服电机-苏州禾力自动化科技有限公司 | 螺杆泵_中成泵业 | 厂房出租_厂房出售_产业园区招商_工业地产&nbsp;-&nbsp;中工招商网 | 桨叶搅拌机_螺旋挤压/方盒旋切造粒机厂家-无锡市鸿诚输送机械有限公司 | 碳纤维布-植筋胶-灌缝胶-固特嘉加固材料公司 | 能耗监测系统-节能监测系统-能源管理系统-三水智能化 | 二手色谱仪器,十万分之一分析天平,蒸发光检测器,电位滴定仪-湖北捷岛科学仪器有限公司 | 工程管道/塑料管材/pvc排水管/ppr给水管/pe双壁波纹管等品牌管材批发厂家-河南洁尔康建材 | 小区健身器材_户外健身器材_室外健身器材_公园健身路径-沧州浩然体育器材有限公司 | 盘古网络技术有限公司| 幂简集成 - 品种超全的API接口平台, 一站搜索、试用、集成国内外API接口 | 无线遥控更衣吊篮_IC卡更衣吊篮_电动更衣吊篮配件_煤矿更衣吊篮-力得电子 | 济南侦探调查-济南调查取证-山东私家侦探-山东白豹调查咨询公司 密集架|电动密集架|移动密集架|黑龙江档案密集架-大量现货厂家销售 | sfp光模块,高速万兆光模块工厂-性价比更高的光纤模块制造商-武汉恒泰通 | 济南ISO9000认证咨询代理公司,ISO9001认证,CMA实验室认证,ISO/TS16949认证,服务体系认证,资产管理体系认证,SC食品生产许可证- 济南创远企业管理咨询有限公司 郑州电线电缆厂家-防火|低压|低烟无卤电缆-河南明星电缆 | 琉璃瓦-琉璃瓦厂家-安徽盛阳新型建材科技有限公司 | 龙门加工中心-数控龙门加工中心厂家价格-山东海特数控机床有限公司_龙门加工中心-数控龙门加工中心厂家价格-山东海特数控机床有限公司 | 合肥注册公司|合肥代办营业执照、2024注册公司流程 | 电磁铁_推拉电磁铁_机械手电磁吸盘电磁铁厂家-广州思德隆电子公司 | Akribis直线电机_直线模组_力矩电机_直线电机平台|雅科贝思Akribis-杭州摩森机电科技有限公司 | 注塑模具_塑料模具_塑胶模具_范仕达【官网】_东莞模具设计与制造加工厂家 | 电线电缆厂家|沈阳电缆厂|电线厂|沈阳英联塑力线缆有限公司 | 悬浮拼装地板_幼儿园_篮球场_悬浮拼接地板-山东悬浮拼装地板厂家 | 浙江建筑资质代办_二级房建_市政_电力_安许_劳务资质办理公司 | 等离子空气净化器_医用空气消毒机_空气净化消毒机_中央家用新风系统厂家_利安达官网 | 高扬程排污泵_隔膜泵_磁力泵_节能自吸离心水泵厂家-【上海博洋】 |