久久久久久久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不卡在线| 欧美黄色一级大片 | 欧美一区二区三区在线视频 | 日韩一级免费视频 | 亚洲午夜在线观看 | 黄色在线小视频 | 午夜免费小视频 | 亚洲精品一区二区三区精华液 | 日本一区二区不卡 | 97在线视频免费观看 | 免费亚洲婷婷 | 日韩精品久久久 | 午夜性视频| 亚洲一区二区三区在线播放 | 91青青草 | japanese极品丰满少妇 | 国产女人18毛片18精品 | 欧美一级淫片免费视频魅影视频 | 国产激情一区二区三区 | 欧美黄色网| 精品一区二区三区四区五区 | 国产麻豆xxxvideo实拍 | 狠狠干综合 | 欧美又粗又长 | 免费三级网站 | 九九热精品视频 | 高清免费av | 成人免费看片视频 | 午夜激情在线观看 | 午夜在线观看免费视频 | 国产欧美日韩视频 | 又色又爽又黄18网站 | 狠狠干夜夜| 日韩精品免费视频 | 日韩精品免费视频 | 欧美超碰在线 |