久久久久久久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 列的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                  問(wèn)題描述

                  限時(shí)送ChatGPT賬號(hào)..

                  我使用的是 SQL Server 2008

                  I am using SQL Server 2008

                  我有一個(gè)包含 xml 數(shù)據(jù)的表,如下所示:

                  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''
                  

                  如何創(chuàng)建查詢以及如何構(gòu)建 xml 索引?

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

                  非常感謝.

                  推薦答案

                  要選擇具有您提到的條件的所有行,請(qǐng)嘗試以下選擇語(yǔ)句:

                  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'
                  

                  對(duì)于 XML 索引,請(qǐng)閱讀在線書(shū)籍 如何創(chuàng)建它們以及如何使用它們.

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

                  這篇關(guān)于如何在 SQL Server 2008 中查詢 XML 列的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問(wèn)題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫(kù)列表和 SQL Server 實(shí)例使用的空間嗎?) - IT屋-程序員軟件開(kāi)發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對(duì) SQL Server 實(shí)例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過(guò)注冊(cè)表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會(huì)出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯(cuò)誤?使用 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 應(yīng)用程序設(shè)計(jì)——將文檔從 SQL Server 移動(dòng)到文件存儲(chǔ))

                  <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>
                            主站蜘蛛池模板: 国产区在线视频 | 国产精品一区一区三区 | 午夜伦理影院 | 日韩在线视频一区 | 国产91在线视频 | 午夜视频网站 | 日韩国产精品一区二区三区 | 国产精品久久久久久久久久久久久 | 久久人爽| 国产精品18hdxxxⅹ在线 | 特级一级黄色片 | 日韩小视频 | 一区二区三区av | 91在线精品一区二区 | 中文字幕日韩一区 | 国产美女在线免费观看 | 欧美一级大黄 | 亚洲一区中文字幕在线观看 | 欧美精品日韩精品国产精品 | 91视频正在播放 | 国产欧美精品区一区二区三区 | 综合久久久 | 久久综合狠狠综合久久综合88 | 欧美精品在线播放 | 亚洲国产成人精品女人久久久 | 91色啪| 91久久精品国产91久久性色tv | www日韩 | 国产亚洲精品久久yy50 | 日韩一区二区在线视频 | 国产麻豆乱码精品一区二区三区 | 欧美日韩亚洲一区二区 | 蜜臀久久99精品久久久久久宅男 | 国产免费一区二区 | 91资源在线观看 | 日韩欧美1区2区 | 欧美成人高清视频 | 亚洲网站在线播放 | 国产成人免费 | 日本福利片 | 麻豆毛片|