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

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

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

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

      1. SQL Server 中的 XML 解析

        XML Parsing in SQL Server(SQL Server 中的 XML 解析)
          <tfoot id='ZIFhC'></tfoot>

                • <bdo id='ZIFhC'></bdo><ul id='ZIFhC'></ul>
                  <legend id='ZIFhC'><style id='ZIFhC'><dir id='ZIFhC'><q id='ZIFhC'></q></dir></style></legend>
                • <small id='ZIFhC'></small><noframes id='ZIFhC'>

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

                    <tbody id='ZIFhC'></tbody>
                  本文介紹了SQL Server 中的 XML 解析的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  要求解析與 MarginRevenue/Cost/Value 相關的所有 27 個值.作為標準方案,這些元素可以按任意順序出現,也可以出現任意次數.簡而言之,XML 是完全動態的.唯一的一點是 Under Margins/Margin,可以有任意數量的 MarginRevenue、MarginCost 和 MarginValue.

                  The requirement is to parse all the 27 values related to MarginRevenue/Cost/Value. As a standard scenario, these elements can come in any order and also can come in any number of time. In short, the XML is completely dynamic. The only point is Under Margins/Margin, there can be any number of MarginRevenue, MarginCost and MarginValue.

                  declare @xml xml = '<Margins>
                  <Margin type="type1" currencyCode="currencyCode1"> 
                  <MarginRevenue>1.1</MarginRevenue> 
                  <MarginRevenue>1.2</MarginRevenue> 
                  <MarginRevenue>1.3</MarginRevenue> 
                  <MarginCost>2.1</MarginCost> 
                  <MarginCost>2.2</MarginCost> 
                  <MarginCost>2.3</MarginCost> 
                  <MarginValue>3.1</MarginValue> 
                  <MarginValue>3.2</MarginValue> 
                  <MarginValue>3.3</MarginValue> </Margin> 
                  <Margin type="type2"  currencyCode="currencyCode2"> 
                  <MarginRevenue>1.4</MarginRevenue> 
                  <MarginRevenue>1.5</MarginRevenue> 
                  <MarginRevenue>1.6</MarginRevenue> 
                  <MarginCost>2.4</MarginCost> 
                  <MarginCost>2.5</MarginCost> 
                  <MarginCost>2.6</MarginCost> 
                  <MarginValue>3.4</MarginValue> 
                  <MarginValue>3.5</MarginValue> 
                  <MarginValue>3.6</MarginValue> </Margin> 
                  <Margin type="type3" currencyCode="currencyCode3"> 
                  <MarginRevenue>1.7</MarginRevenue> 
                  <MarginRevenue>1.8</MarginRevenue> 
                  <MarginRevenue>1.9</MarginRevenue> 
                  <MarginCost>2.7</MarginCost> 
                  <MarginCost>2.8</MarginCost> 
                  <MarginCost>2.9</MarginCost> 
                  <MarginValue>3.7</MarginValue> 
                  <MarginValue>3.8</MarginValue> 
                  <MarginValue>3.9</MarginValue> </Margin>
                  </Margins>'
                  

                  推薦答案

                  不太清楚您要實現的目標/想要獲得的目標 - 但此 XQuery 將為您返回所有 27 個值:

                  Not quite clear what you're trying to achieve / what you're looking to get - but this XQuery will return all 27 values for you:

                  SELECT
                      Name = XC.value('local-name(.)', 'varchar(100)'),
                      Value = XC.value('.', 'varchar(100)')
                  FROM
                      @xml.nodes('/Margins/Margin/*') AS XT(XC)
                  

                  SSMS 中的結果:

                  這篇關于SQL Server 中的 XML 解析的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='RllBF'><tr id='RllBF'><dt id='RllBF'><q id='RllBF'><span id='RllBF'><b id='RllBF'><form id='RllBF'><ins id='RllBF'></ins><ul id='RllBF'></ul><sub id='RllBF'></sub></form><legend id='RllBF'></legend><bdo id='RllBF'><pre id='RllBF'><center id='RllBF'></center></pre></bdo></b><th id='RllBF'></th></span></q></dt></tr></i><div class="dhxfr7f" id='RllBF'><tfoot id='RllBF'></tfoot><dl id='RllBF'><fieldset id='RllBF'></fieldset></dl></div>
                    <bdo id='RllBF'></bdo><ul id='RllBF'></ul>
                    <legend id='RllBF'><style id='RllBF'><dir id='RllBF'><q id='RllBF'></q></dir></style></legend>
                      <tbody id='RllBF'></tbody>

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

                    <tfoot id='RllBF'></tfoot>

                            主站蜘蛛池模板: 胶原检测试剂盒,弹性蛋白检测试剂盒,类克ELISA试剂盒,阿达木单抗ELISA试剂盒-北京群晓科苑生物技术有限公司 | 烽火安全网_加密软件、神盾软件官网 | 品牌策划-品牌设计-济南之式传媒广告有限公司官网-提供品牌整合丨影视创意丨公关活动丨数字营销丨自媒体运营丨数字营销 | 铸铁平台,大理石平台专业生产厂家_河北-北重机械 | 仿清水混凝土_清水混凝土装修_施工_修饰_保护剂_修补_清水混凝土修复-德州忠岭建筑装饰工程 | 浙江栓钉_焊钉_剪力钉厂家批发_杭州八建五金制造有限公司 | 东莞工厂厂房装修_无尘车间施工_钢结构工程安装-广东集景建筑装饰设计工程有限公司 | 雷达液位计_超声波风速风向仪_雨量传感器_辐射传感器-山东风途物联网 | PE一体化污水处理设备_地埋式生活污水净化槽定制厂家-岩康塑业 | 建筑工程资质合作-工程资质加盟分公司-建筑资质加盟 | 防火阀、排烟防火阀、电动防火阀产品生产销售商-德州凯亿空调设备有限公司 | 天津试验仪器-电液伺服万能材料试验机,恒温恒湿标准养护箱,水泥恒应力压力试验机-天津鑫高伟业科技有限公司 | 置顶式搅拌器-优莱博化学防爆冰箱-磁驱搅拌器-天津市布鲁克科技有限公司 | 石栏杆_青石栏杆_汉白玉栏杆_花岗岩栏杆 - 【石雕之乡】点石石雕石材厂 | 学生作文网_中小学生作文大全与写作指导 | 高铝砖-高铝耐火球-高铝耐火砖生产厂家-价格【荣盛耐材】 | 浙江浩盛阀门有限公司| 金库门,金库房,金库门厂家,金库门价格-河北特旺柜业有限公司 | 大_小鼠elisa试剂盒-植物_人Elisa试剂盒-PCR荧光定量试剂盒-上海一研生物科技有限公司 | 上海诺狮景观规划设计有限公司| 盐城网络公司_盐城网站优化_盐城网站建设_盐城市启晨网络科技有限公司 | 柔性输送线|柔性链板|齿形链-上海赫勒输送设备有限公司首页[输送机] | 石磨面粉机|石磨面粉机械|石磨面粉机组|石磨面粉成套设备-河南成立粮油机械有限公司 | 周口风机|周风风机|河南省周口通用风机厂 | 伸缩器_伸缩接头_传力接头-巩义市润达管道设备制造有限公司 | 大型多片锯,圆木多片锯,方木多片锯,板材多片锯-祥富机械有限公司 | 滚筒烘干机_转筒烘干机_滚筒干燥机_转筒干燥机_回转烘干机_回转干燥机-设备生产厂家 | 山东PE给水管厂家,山东双壁波纹管,山东钢带增强波纹管,山东PE穿线管,山东PE农田灌溉管,山东MPP电力保护套管-山东德诺塑业有限公司 | 硅胶制品-硅橡胶制品-东莞硅胶制品厂家-广东帝博科技有限公司 | 招商帮-一站式网络营销服务|互联网整合营销|网络推广代运营|信息流推广|招商帮企业招商好帮手|搜索营销推广|短视视频营销推广 | 武汉画册印刷厂家-企业画册印刷-画册设计印刷制作-宣传画册印刷公司 - 武汉泽雅印刷厂 | 武汉刮刮奖_刮刮卡印刷厂_为企业提供门票印刷_武汉合格证印刷_现金劵代金券印刷制作 - 武汉泽雅印刷有限公司 | 亚克隆,RNAi干扰检测,miRNA定量检测-上海基屹生物科技有限公司 | 智成电子深圳tdk一级代理-提供TDK电容电感贴片蜂鸣器磁芯lambda电源代理经销,TDK代理商有哪些TDK一级代理商排名查询。-深圳tdk一级代理 | 成都思迪机电技术研究所-四川成都思迪编码器| 浙江建筑资质代办_二级房建_市政_电力_安许_劳务资质办理公司 | 航空铝型材,7系铝型材挤压,硬质阳*氧化-余润铝制品 | 吉祥新世纪铝塑板_生产铝塑板厂家_铝塑板生产厂家_临沂市兴达铝塑装饰材料有限公司 | 首页|专注深圳注册公司,代理记账报税,注册商标代理,工商变更,企业400电话等企业一站式服务-慧用心 | 耐破强度测试仪-纸箱破裂强度试验机-济南三泉中石单品站 | 云阳人才网_云阳招聘网_云阳人才市场_云阳人事人才网_云阳人家招聘网_云阳最新招聘信息 |