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

      <tfoot id='hF9vW'></tfoot>
        <bdo id='hF9vW'></bdo><ul id='hF9vW'></ul>

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

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

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

        如何在 SQL Server 2008 中查詢 XML 列

        How to query on XML column In SQL Server 2008(如何在 SQL Server 2008 中查詢 XML 列)

        <legend id='v8akq'><style id='v8akq'><dir id='v8akq'><q id='v8akq'></q></dir></style></legend>
        <tfoot id='v8akq'></tfoot>

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

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

              • <bdo id='v8akq'></bdo><ul id='v8akq'></ul>
                1. 本文介紹了如何在 SQL Server 2008 中查詢 XML 列的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我使用的是 SQL Server 2008

                  I am using SQL Server 2008

                  我有一個包含 xml 數據的表,如下所示:

                  I have a table with xml data looks like:

                  ID           xml_col  
                  1            <Attribute id="7">1.0</Attribute><Attribute id="8">AAA</Attribute>  
                  2            <Attribute id="7">2.0</Attribute><Attribute id="8">BBB</Attribute>  
                  3            <Attribute id="7">3.0</Attribute><Attribute id="8">AAA</Attribute>  
                  4            <Attribute id="7">1.0</Attribute><Attribute id="8">BBB</Attribute>  
                  5            <Attribute id="7">1.0</Attribute><Attribute id="8">AAA</Attribute>  
                  6            <Attribute id="7">7.0</Attribute><Attribute id="8">CCC</Attribute>  
                  

                  我想得到那些記錄

                  'when attribute=17 then value =1'+ 'when attribute=8 then value='AAA''
                  

                  如何創建查詢以及如何構建 xml 索引?

                  How can i create the query and how to build xml indexes?

                  非常感謝.

                  推薦答案

                  要選擇具有您提到的條件的所有行,請嘗試以下選擇語句:

                  To select all rows which have the criteria you mentioned, try this select statement:

                  SELECT * 
                  FROM dbo.YourXmlTable
                  WHERE
                  YourXmlTable.xml_col.value('(//Attribute[@id=7])[1]', 'decimal') = 1.0
                  AND 
                      YourXmlTable.xml_col.value('(//Attribute[@id=8])[1]', 'varchar(10)') = 'AAA'
                  

                  對于 XML 索引,請閱讀在線書籍 如何創建它們以及如何使用它們.

                  For XML indices, read up on Books Online how to create them and how to use them.

                  這篇關于如何在 SQL Server 2008 中查詢 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 移動到文件存儲)

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

                        <tbody id='MjL0c'></tbody>
                      • <bdo id='MjL0c'></bdo><ul id='MjL0c'></ul>

                          1. <tfoot id='MjL0c'></tfoot><legend id='MjL0c'><style id='MjL0c'><dir id='MjL0c'><q id='MjL0c'></q></dir></style></legend>
                          2. <i id='MjL0c'><tr id='MjL0c'><dt id='MjL0c'><q id='MjL0c'><span id='MjL0c'><b id='MjL0c'><form id='MjL0c'><ins id='MjL0c'></ins><ul id='MjL0c'></ul><sub id='MjL0c'></sub></form><legend id='MjL0c'></legend><bdo id='MjL0c'><pre id='MjL0c'><center id='MjL0c'></center></pre></bdo></b><th id='MjL0c'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MjL0c'><tfoot id='MjL0c'></tfoot><dl id='MjL0c'><fieldset id='MjL0c'></fieldset></dl></div>
                            主站蜘蛛池模板: 国产福利一区二区 | 国产高清免费在线 | 免费在线观看黄网站 | 成人区精品一区二区婷婷 | 日韩免费av | av网站在线免费观看 | 草比网站 | 中文在线亚洲 | 日韩欧美在线观看 | 亚洲视频欧美视频 | 在线播放亚洲 | 视频在线亚洲 | 国产中文字幕在线观看 | 国产免费拔擦拔擦8x高清 | 人人干人人看 | 一区在线观看 | 国产精品成人一区二区三区 | 久久久国产精品 | 亚洲成人精 | 精品国产一区二区 | 日韩在线免费播放 | 天天艹逼网 | 日韩在线中文字幕 | 九九综合 | 给我免费的视频在线观看 | 一区二区三区四区在线视频 | 亚洲精品久久 | 免费观看毛片 | 国产一区二区久久 | 日韩精品成人 | www.av在线| 天天操妹子 | 日韩av成人| 涩爱av一区二区三区 | 国产美女自拍视频 | 狠狠操av | 一级久久久久久 | 精品日本久久久久久久久久 | 国产精品99久久久久久人 | 毛片一级黄色 | 久在线视频播放免费视频 |