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

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

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

        <bdo id='u1WuH'></bdo><ul id='u1WuH'></ul>

      1. <small id='u1WuH'></small><noframes id='u1WuH'>

      2. 如何在 SQL 中拆分具有相同子子名稱的兩個 xml 標

        How to break up two xml tags with the same subchild names in SQL(如何在 SQL 中拆分具有相同子子名稱的兩個 xml 標簽)
          <tbody id='HUx9I'></tbody>

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

            1. <legend id='HUx9I'><style id='HUx9I'><dir id='HUx9I'><q id='HUx9I'></q></dir></style></legend>

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

                  本文介紹了如何在 SQL 中拆分具有相同子子名稱的兩個 xml 標簽的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我創建了一個腳本,它從 SQL 中的表中獲取數據并生成 XML 輸出.父、子和子子標簽對于 2 個標簽都是相同的.SQL 腳本將它們作為一個 XML 值而不是 2 輸出.

                  I have created a script which takes data from a table in SQL and generates an XML output. The parent, child and sub-child tags are all the same which for 2 tags. The SQL script is outputting them as one XML value instead of 2.

                   SELECT
                   Request.TransactionRef AS [RequestHeader/RequestID],
                  'Deal.Trial' AS [RequestHeader/Action],
                  'DoDealValidate' AS [RequestHeader/ActionFlags/Flag],
                  'DoDealDerive' AS [RequestHeader/ActionFlags/Flag] 
                  

                  目前的結果是:

                  <ActionFlags>
                  <Flag>DoDealValidateDoDealDerive</Flag>
                  </ActionFlags>
                  
                  
                  
                  
                  <ActionFlags>
                  <Flag>DoDealValidate</Flag>
                  <Flag>DoDealDerive</Flag>
                  </ActionFlags>
                  

                  推薦答案

                  只需在中間放置一些:

                  SELECT
                   'blah' AS [RequestHeader/RequestID],
                  'Deal.Trial' AS [RequestHeader/Action],
                  'DoDealValidate' AS [RequestHeader/ActionFlags/Flag],
                  NULL AS [RequestHeader/ActionFlags],
                  'DoDealDerive' AS [RequestHeader/ActionFlags/Flag] 
                  FOR XML PATH('row');
                  

                  背景:

                  引擎通過 SELECT 的列運行并一個接一個地構建它們.

                  The engine is running through the SELECT's columns and builds them one after the other.

                  • 好吧,有一個要打開
                  • 并且有一個要打開
                  • 再次,還是打開的,沒什么
                  • 下面還有...哦,我們必須關閉并打開一個新的
                  • 等等...
                  • Well, there is a <RequestHeader> to open
                  • and there is a <RequestID> to open
                  • Again the <RequestHeader>, still open, nothin to to
                  • and there is <Action> below... Oh, we must close the <RequestID> and open a new <Action>
                  • and so on...

                  在您的代碼中, 仍然是打開的,因此內容被寫入到 open 元素中.

                  In your code the <Flag> is still open, therefore the content is written into the open element.

                  我的改變會讓引擎思考

                  • 啊,我們上移一層,所以我們先關閉...哎呀,沒什么可寫的...
                  • 現在<Flag>有一些東西,它不再打開了,我們必須重新打開一個(新的)節點
                  • 等等...
                  • Ah, we move up one level, so we close the <Flag> first... Oops, there's nothing to write...
                  • Now there is something for <Flag>, which is not open anymore, we have to re-open a (new) <Flag> node
                  • and so on...

                  這篇關于如何在 SQL 中拆分具有相同子子名稱的兩個 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='a1Jic'><tr id='a1Jic'><dt id='a1Jic'><q id='a1Jic'><span id='a1Jic'><b id='a1Jic'><form id='a1Jic'><ins id='a1Jic'></ins><ul id='a1Jic'></ul><sub id='a1Jic'></sub></form><legend id='a1Jic'></legend><bdo id='a1Jic'><pre id='a1Jic'><center id='a1Jic'></center></pre></bdo></b><th id='a1Jic'></th></span></q></dt></tr></i><div class="xf7fl7p" id='a1Jic'><tfoot id='a1Jic'></tfoot><dl id='a1Jic'><fieldset id='a1Jic'></fieldset></dl></div>
                      <tbody id='a1Jic'></tbody>
                    <tfoot id='a1Jic'></tfoot>

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

                        <bdo id='a1Jic'></bdo><ul id='a1Jic'></ul>

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

                            主站蜘蛛池模板: 工业制氮机_psa制氮机厂家-宏骁智能装备科技江苏有限公司 | B2B网站_B2B免费发布信息网站_B2B企业贸易平台 - 企资网 | 尚为传动-专业高精密蜗轮蜗杆,双导程蜗轮蜗杆,蜗轮蜗杆减速机,蜗杆减速机生产厂家 | 精密线材测试仪-电线电缆检测仪-苏州欣硕电子科技有限公司 | 不锈钢复合板|钛复合板|金属复合板|南钢集团安徽金元素复合材料有限公司-官网 | 高空重型升降平台_高空液压举升平台_高空作业平台_移动式升降机-河南华鹰机械设备有限公司 | 模具ERP_模具管理系统_模具mes_模具进度管理_东莞市精纬软件有限公司 | 高博医疗集团上海阿特蒙医院| 升降炉_真空气氛炉_管式电阻炉厂家-山东中辰电炉有限公司 | 江苏农村商业银行招聘网_2024江苏农商行考试指南_江苏农商行校园招聘 | POM塑料_PBT材料「进口」聚甲醛POM杜邦原料、加纤PBT塑料报价格找利隆塑料 | 生产自动包装秤_颗粒包装秤_肥料包装秤等包装机械-郑州鑫晟重工科技有限公司 | 吨袋包装机|吨包秤|吨包机|集装袋包装机-烟台华恩科技 | 离子色谱自动进样器-青岛艾力析实验科技有限公司 | cnc精密加工_数控机械加工_非标平键定制生产厂家_扬州沃佳机械有限公司 | 密集柜_档案密集柜_智能密集架_密集柜厂家_密集架价格-智英伟业 密集架-密集柜厂家-智能档案密集架-自动选层柜订做-河北风顺金属制品有限公司 | 硫酸亚铁-聚合硫酸铁-除氟除磷剂-复合碳源-污水处理药剂厂家—长隆科技 | 球盟会·(中国)官方网站 | 北京律师事务所_房屋拆迁律师_24小时免费法律咨询_云合专业律师网 | 胶泥瓷砖胶,轻质粉刷石膏,嵌缝石膏厂家,腻子粉批发,永康家德兴,永康市家德兴建材厂 | 国产离子色谱仪,红外分光测油仪,自动烟尘烟气测试仪-青岛埃仑通用科技有限公司 | 芝麻黑-芝麻黑石材厂家-永峰石业 | 泰安办公家具-泰安派格办公用品有限公司 | 千淘酒店差旅平台-中国第一家针对TMC行业的酒店资源供应平台 | 顺景erp系统_erp软件_erp软件系统_企业erp管理系统-广东顺景软件科技有限公司 | 电气控制系统集成商-PLC控制柜变频控制柜-非标自动化定制-电气控制柜成套-NIDEC CT变频器-威肯自动化控制 | 行吊_电动单梁起重机_双梁起重机_合肥起重机_厂家_合肥市神雕起重机械有限公司 | 杭州中策电线|中策电缆|中策电线|杭州中策电缆|杭州中策电缆永通集团有限公司 | 吉林污水处理公司,长春工业污水处理设备,净水设备-长春易洁环保科技有限公司 | 中央空调维修、中央空调保养、螺杆压缩机维修-苏州东菱空调 | 振动传感器,检波器-威海广达勘探仪器有限公司 | 微水泥_硅藻泥_艺术涂料_艺术漆_艺术漆加盟-青岛泥之韵环保壁材 武汉EPS线条_EPS装饰线条_EPS构件_湖北博欧EPS线条厂家 | 挤塑板-XPS挤塑板-挤塑板设备厂家[襄阳欧格] | 上海盐水喷雾试验机_两厢式冷热冲击试验箱-巨怡环试 | 雷冲击高压发生器-水内冷直流高压发生器-串联谐振分压器-武汉特高压电力科技有限公司 | 青岛空压机,青岛空压机维修/保养,青岛空压机销售/出租公司,青岛空压机厂家电话 | 硫化罐_蒸汽硫化罐_大型硫化罐-山东鑫泰鑫智能装备有限公司 | 六维力传感器_六分量力传感器_模腔压力传感器-南京数智微传感科技有限公司 | 南京展台搭建-南京展会设计-南京展览设计公司-南京展厅展示设计-南京汇雅展览工程有限公司 | 数码管_LED贴片灯_LED数码管厂家-无锡市冠卓电子科技有限公司 | 坏男孩影院-提供最新电影_动漫_综艺_电视剧_迅雷免费电影最新观看 |