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>

                            主站蜘蛛池模板: 恒湿机_除湿加湿一体机_恒湿净化消毒一体机厂家-杭州英腾电器有限公司 | 精密五金加工厂-CNC数控车床加工_冲压件|蜗杆|螺杆加工「新锦泰」 | 衡阳耐适防护科技有限公司——威仕盾焊接防护用品官网/焊工手套/焊接防护服/皮革防护手套 | 安徽合肥格力空调专卖店_格力中央空调_格力空调总经销公司代理-皖格制冷设备 | 烽火安全网_加密软件、神盾软件官网 | 法钢特种钢材(上海)有限公司 - 耐磨钢板、高强度钢板销售加工 阀门智能定位器_电液动执行器_气动执行机构-赫尔法流体技术(北京)有限公司 | 钛合金标准件-钛合金螺丝-钛管件-钛合金棒-钛合金板-钛合金锻件-宝鸡远航钛业有限公司 | 自动售货机_无人售货机_专业的自动售货机运营商_免费投放售货机-广州富宏主官网 | 好看的韩国漫画_韩漫在线免费阅读-汗汗漫画 | 盘装氧量分析仪-防爆壁挂氧化锆分析仪-安徽吉帆仪表有限公司 | 学生作文网_中小学生作文大全与写作指导 | RFID电子标签厂家-上海尼太普电子有限公司 | 意大利Frascold/富士豪压缩机_富士豪半封闭压缩机_富士豪活塞压缩机_富士豪螺杆压缩机 | 农产品溯源系统_农产品质量安全追溯系统_溯源系统 | 校园文化空间设计-数字化|中医文化空间设计-党建|法治廉政主题文化空间施工-山东锐尚文化传播公司 | 无缝钢管-聊城无缝钢管-小口径无缝钢管-大口径无缝钢管 - 聊城宽达钢管有限公司 | 汽车水泵_汽车水泵厂家-瑞安市骏迪汽车配件有限公司 | 艺术涂料|木纹漆施工|稻草漆厂家|马来漆|石桦奴|水泥漆|选加河南天工涂料 | 【同风运车官网】一站式汽车托运服务平台,验车满意再付款 | 瑞典Blueair空气净化器租赁服务中心-专注新装修办公室除醛去异味服务! | 无刷电机_直流无刷电机_行星减速机-佛山市藤尺机电设备有限公司 无菌检查集菌仪,微生物限度仪器-苏州长留仪器百科 | 净化车间_洁净厂房_净化公司_净化厂房_无尘室工程_洁净工程装修|改造|施工-深圳净化公司 | 金属清洗剂,防锈油,切削液,磨削液-青岛朗力防锈材料有限公司 | Copeland/谷轮压缩机,谷轮半封闭压缩机,谷轮涡旋压缩机,型号规格,技术参数,尺寸图片,价格经销商 CTP磁天平|小电容测量仪|阴阳极极化_双液系沸点测定仪|dsj电渗实验装置-南京桑力电子设备厂 | 高压直流电源_特种变压器_变压器铁芯-希恩变压器定制厂家 | 钢板仓,大型钢板仓,钢板库,大型钢板库,粉煤灰钢板仓,螺旋钢板仓,螺旋卷板仓,骨料钢板仓 | 铝合金线槽_铝型材加工_空调挡水板厂家-江阴炜福金属制品有限公司 | 冷水机-冰水机-冷冻机-冷风机-本森智能装备(深圳)有限公司 | 模具ERP_模具管理系统_模具mes_模具进度管理_东莞市精纬软件有限公司 | 微波萃取合成仪-电热消解器价格-北京安合美诚科学仪器有限公司 | 无菌实验室规划装修设计-一体化实验室承包-北京洁净净化工程建设施工-北京航天科恩实验室装备工程技术有限公司 | 郑州外墙清洗_郑州玻璃幕墙清洗_郑州开荒保洁-河南三恒清洗服务有限公司 | 柴油机_柴油发电机_厂家_品牌-江苏卡得城仕发动机有限公司 | 呼末二氧化碳|ETCO2模块采样管_气体干燥管_气体过滤器-湖南纳雄医疗器械有限公司 | 胶原检测试剂盒,弹性蛋白检测试剂盒,类克ELISA试剂盒,阿达木单抗ELISA试剂盒-北京群晓科苑生物技术有限公司 | 好笔杆子网 - 公文写作学习交流分享平台| 琉璃瓦-琉璃瓦厂家-安徽盛阳新型建材科技有限公司 | 除尘器布袋骨架,除尘器滤袋,除尘器骨架,电磁脉冲阀膜片,卸灰阀,螺旋输送机-泊头市天润环保机械设备有限公司 | 衡阳耐适防护科技有限公司——威仕盾焊接防护用品官网/焊工手套/焊接防护服/皮革防护手套 | 飞飞影视_热门电影在线观看_影视大全 | 深圳高新投三江工业消防解决方案提供厂家_服务商_园区智慧消防_储能消防解决方案服务商_高新投三江 |