久久久久久久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ì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時(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)閱讀在線書籍 如何創(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)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(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屋-程序員軟件開發(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(如何通過注冊(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>
                            主站蜘蛛池模板: 一区二区三区在线观看免费视频 | 黄网站涩免费蜜桃网站 | 亚洲一区二区三区在线免费观看 | 免费看片在线播放 | 欧美aⅴ片| 成人一级视频在线观看 | 亚洲国产精品第一区二区 | 亚洲一区久久 | 成人在线不卡 | 91高清在线观看 | 国产精品久久久久久久久久免费看 | 一区二区三区精品在线 | 欧美日韩精品一区二区三区四区 | 一区二区三区欧美 | 亚洲免费三区 | 草草草网站 | 亚洲一区视频在线 | 日韩成人高清在线 | 亚洲一区二区三区久久久 | 国产中文在线 | 在线观看一区 | 毛片免费在线 | 成人免费看黄网站在线观看 | 暖暖成人免费视频 | 精品在线免费观看视频 | 国产精品激情在线 | 天堂视频免费 | 在线视频国产一区 | 久久精彩视频 | 2019天天操 | 亚洲 中文 欧美 日韩 在线观看 | 伊人无码高清 | 亚州成人| 午夜日韩 | 欧美精品中文字幕久久二区 | 亚洲精品一 | 欧美黄 片免费观看 | 亚洲天堂久久新 | 伊人久久精品一区二区三区 | 国产精品视频999 | 国产精品久久久久久久久久免费看 |