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

      <bdo id='IvDvy'></bdo><ul id='IvDvy'></ul>

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

      2. <tfoot id='IvDvy'></tfoot>

        在sql server中解析xml

        Parsing xml in sql server(在sql server中解析xml)
        <i id='kuhmR'><tr id='kuhmR'><dt id='kuhmR'><q id='kuhmR'><span id='kuhmR'><b id='kuhmR'><form id='kuhmR'><ins id='kuhmR'></ins><ul id='kuhmR'></ul><sub id='kuhmR'></sub></form><legend id='kuhmR'></legend><bdo id='kuhmR'><pre id='kuhmR'><center id='kuhmR'></center></pre></bdo></b><th id='kuhmR'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kuhmR'><tfoot id='kuhmR'></tfoot><dl id='kuhmR'><fieldset id='kuhmR'></fieldset></dl></div>

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

            <bdo id='kuhmR'></bdo><ul id='kuhmR'></ul>

            <tfoot id='kuhmR'></tfoot>
              <tbody id='kuhmR'></tbody>
            <legend id='kuhmR'><style id='kuhmR'><dir id='kuhmR'><q id='kuhmR'></q></dir></style></legend>

                  本文介紹了在sql server中解析xml的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個包含 xml 的 ntext 類型列的表.我已嘗試應(yīng)用許多示例,說明如何從特定節(jié)點的 xml 中提取公司名稱的值,但仍然出現(xiàn)語法錯誤.下面是我所做的,除了用我的 select 語句替換了實際的 xml 輸出

                  I have a table with an ntext type column that holds xml. I have tried to apply many examples of how to pull the value for the company's name from the xml for a particular node, but continue to get a syntax error. Below is what I've done, except substituted my select statement for the actual xml output

                  DECLARE @companyxml xml
                  
                      SET @companyxml = 
                      '<Home>
                        <slideshowImage1>1105</slideshowImage1>
                        <slideshowImage2>1106</slideshowImage2>
                        <slideshowImage3>1107</slideshowImage3>
                        <slideshowImage4>1108</slideshowImage4>
                        <slideshowImage5>1109</slideshowImage5>
                        <bottomNavImg1>1155</bottomNavImg1>
                        <bottomNavImg2>1156</bottomNavImg2>
                        <bottomNavImg3>1157</bottomNavImg3>
                        <pageTitle>Acme Capital Management |Homepage</pageTitle>
                        <metaKeywords><![CDATA[]]></metaKeywords>
                        <metaDescription><![CDATA[]]></metaDescription>
                        <companyName>Acme Capital Management</companyName>
                        <logoImg>1110</logoImg>
                        <pageHeader></pageHeader>
                      </Home>'
                  
                  SELECT c.value ('companyName','varchar(1000)') AS companyname 
                  FROM @companyxml.nodes('/Home') AS c
                  

                  出于某種原因,select c.value 語句有一個我無法弄清楚的語法問題.在 SSMS 中懸停時,它說找不到列c"或用戶定義的函數(shù)或聚合c.value",或者名稱不明確.'

                  For some reason, the select c.value statement has a syntax problem that I can't figure out. On hover in SSMS, it says 'cannot find either column "c" or the user-defined function or aggregate "c.value", or the name is ambiguous.'

                  對語法的任何幫助將不勝感激.

                  Any help on the syntax would be greatly appreciated.

                  推薦答案

                  試試這個

                   DECLARE @companyxml xml
                  
                  SET @companyxml = 
                  '<Home>
                    <slideshowImage1>1105</slideshowImage1>
                    <slideshowImage2>1106</slideshowImage2>
                    <slideshowImage3>1107</slideshowImage3>
                    <slideshowImage4>1108</slideshowImage4>
                    <slideshowImage5>1109</slideshowImage5>
                    <bottomNavImg1>1155</bottomNavImg1>
                    <bottomNavImg2>1156</bottomNavImg2>
                    <bottomNavImg3>1157</bottomNavImg3>
                    <pageTitle>Acme Capital Management Homepage</pageTitle>
                    <metaKeywords>CDATA</metaKeywords>
                    <metaDescription>CDATA</metaDescription>
                    <companyName>Acme Capital Management</companyName>
                    <logoImg>1110</logoImg>
                    <pageHeader></pageHeader>
                  </Home>'
                  
                  
                  DECLARE @Result AS varchar(50)
                  
                  SET @result = @companyxml.value('(/Home/companyName/text())[1]','varchar(50)')
                  
                  SELECT @result
                  

                  這篇關(guān)于在sql server中解析xml的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(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ù)庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對 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()?(為什么會出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯誤?使用 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è)計——將文檔從 SQL Server 移動到文件存儲)

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

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

                          • 主站蜘蛛池模板: 色婷婷18| 日韩中文字幕一区 | 欧美 日韩 国产 在线 | 一道本在线 | 99热在线免费观看 | 久久久久国产精品视频 | 亚洲国产精品久久久 | 亚洲激情一区二区 | 欧美精品网 | 国产精品久久午夜夜伦鲁鲁 | 亚洲精品在线看 | 久久这里只有 | 欧美三级a做爰在线观看 | 欧美久久精品 | 一区二区三区免费在线观看 | 亚洲国产成人在线 | 久操国产| 中文字幕不卡在线观看 | 欧美一区二区三区在线 | 无遮挡毛片 | 99在线免费视频 | 亚洲精品成人 | www.桃色av嫩草.com| 国产精品久久久久久久久久久久久久久 | 精品国产欧美 | av在线免费观看网址 | 国产精品入口 | 亚洲欧美另类在线观看 | 在线观看国产一区二区 | 色网站在线 | 亚洲人成免费 | 成人网在线 | 欧美aaaaa| 久久精品在线观看 | 日韩毛片| 欧美日韩免费一区二区三区 | 青青草免费在线观看 | 亚洲国产成人av | 久久天堂网 | 免费黄色一级 | 青青草久久 |