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

    <bdo id='3YC7F'></bdo><ul id='3YC7F'></ul>
  • <legend id='3YC7F'><style id='3YC7F'><dir id='3YC7F'><q id='3YC7F'></q></dir></style></legend>
    <i id='3YC7F'><tr id='3YC7F'><dt id='3YC7F'><q id='3YC7F'><span id='3YC7F'><b id='3YC7F'><form id='3YC7F'><ins id='3YC7F'></ins><ul id='3YC7F'></ul><sub id='3YC7F'></sub></form><legend id='3YC7F'></legend><bdo id='3YC7F'><pre id='3YC7F'><center id='3YC7F'></center></pre></bdo></b><th id='3YC7F'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3YC7F'><tfoot id='3YC7F'></tfoot><dl id='3YC7F'><fieldset id='3YC7F'></fieldset></dl></div>

        <small id='3YC7F'></small><noframes id='3YC7F'>

        <tfoot id='3YC7F'></tfoot>

        從 varchar(max) 列中選擇 XML

        Select XML from varchar(max) column(從 varchar(max) 列中選擇 XML)

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

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

                    <tbody id='hSTnh'></tbody>
                1. 本文介紹了從 varchar(max) 列中選擇 XML的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我在 SQL Server 2005 的 varchar(max) 列中存儲了一些 XML 數據.數據采用以下格式(FQTN = 完全限定類型名稱):

                  I have some XML data stored in a varchar(max) column on SQL Server 2005. The data is in the form (FQTN = fully qualified type name):

                  <?xml version="1.0" encoding="utf-16"?>
                  <History xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                    <EntityViews>
                      <EntityProxy Type="FQTN" Key="386876" />
                      <EntityProxy Type="FQTN" Key="387981" />
                      <!-- etc. -->
                    </EntityViews>
                  </History>
                  

                  如何選擇類型、鍵,以便從該列中的 XML 數據中獲得單行的表格結果?該表有一個名為 HistoryId 的身份主鍵.

                  How can I select Type, Key so that I get a tabular result from the XML data in this column for a single row? The table has an identity primary key named HistoryId.

                  推薦答案

                  ;with cteCastToXML as (
                      select CAST(YourColumn as xml) as x
                          from YourTable
                  )
                  select h.ep.value('@Type','varchar(10)') as [Type],
                         h.ep.value('@Key', 'varchar(10)') as [Key]
                      from cteCastToXML
                          cross apply x.nodes('/History/EntityViews/EntityProxy') as h(ep)
                  

                  這篇關于從 varchar(max) 列中選擇 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 移動到文件存儲)
                    <tbody id='QqIQx'></tbody>
                  <i id='QqIQx'><tr id='QqIQx'><dt id='QqIQx'><q id='QqIQx'><span id='QqIQx'><b id='QqIQx'><form id='QqIQx'><ins id='QqIQx'></ins><ul id='QqIQx'></ul><sub id='QqIQx'></sub></form><legend id='QqIQx'></legend><bdo id='QqIQx'><pre id='QqIQx'><center id='QqIQx'></center></pre></bdo></b><th id='QqIQx'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='QqIQx'><tfoot id='QqIQx'></tfoot><dl id='QqIQx'><fieldset id='QqIQx'></fieldset></dl></div>

                    <tfoot id='QqIQx'></tfoot>

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

                        • <legend id='QqIQx'><style id='QqIQx'><dir id='QqIQx'><q id='QqIQx'></q></dir></style></legend>
                            <bdo id='QqIQx'></bdo><ul id='QqIQx'></ul>
                          • 主站蜘蛛池模板: 久久久久久www | 999久久久久久久久6666 | 在线视频h| 欧美一级视频在线观看 | 久久精品99久久 | 亚洲乱码国产乱码精品精的特点 | 国产视频亚洲视频 | a在线视频| 国产亚洲一区二区三区 | 小h片免费观看久久久久 | 亚洲国产欧美日韩 | 日韩精品专区在线影院重磅 | 国产一区二区免费 | 欧美video| 日韩色在线 | 日韩视频一区在线观看 | 亚洲第一福利网 | 波多野结衣一区二区 | 天天搞天天搞 | 国产亚洲精品久久午夜玫瑰园 | 免费精品 | 九九热在线视频免费观看 | 成人激情视频免费观看 | 久久久久无码国产精品一区 | 国产欧美久久一区二区三区 | 岛国毛片在线观看 | 日韩高清中文字幕 | 亚洲欧洲精品一区 | 亚洲精品久久久一区二区三区 | 国产日韩欧美在线观看 | 性一交一乱一透一a级 | 成人免费观看男女羞羞视频 | 91免费观看| 欧美国产日韩一区二区三区 | 中文字幕97 | 久久不射电影网 | 国产日产精品一区二区三区四区 | 在线观看日韩精品视频 | 一区二区av在线 | 国产成人一区二区三区电影 | 国产一区二区在线视频 |