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

<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="qwawimqqmiuu" 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="qwawimqqmiuu" 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="qwawimqqmiuu" 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>

                            主站蜘蛛池模板: 国产一级黄色网 | 一区二区成人在线 | 成人在线一区二区 | 精品国产91久久久久久 | 亚洲一区在线播放 | 在线看av网址 | 91大神在线资源观看无广告 | 午夜视频在线免费观看 | 成人国产精品入口免费视频 | 精品久久国产 | 欧美黄在线观看 | 日韩欧美第一页 | 亚洲日韩中文字幕一区 | 国产日韩一区二区三免费高清 | 亚洲自拍偷拍视频 | 婷婷色网| 国产乱码精品一区二区三区五月婷 | 国产69久久精品成人看动漫 | 日本三级电影免费观看 | 中文字幕在线观看一区 | 欧美中文在线 | 日韩av成人在线 | 成人免费视频 | 老司机午夜性大片 | 色爱综合网 | 国产成人精品网站 | 国产精品久久久久久久久久久免费看 | 99久久精品一区二区毛片吞精 | 黄视频国产 | 国产成人精品一区二区 | 欧美极品在线视频 | 午夜网 | 91免费观看在线 | 国产免费xxx | www.狠狠干 | 久久久久国产精品www | 成人精品在线观看 | 亚洲视频一区二区三区 | 成年视频在线观看 | 午夜久久久久 | 久久国色 |