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

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

    2. <legend id='b1eFo'><style id='b1eFo'><dir id='b1eFo'><q id='b1eFo'></q></dir></style></legend>
    3. <small id='b1eFo'></small><noframes id='b1eFo'>

    4. 在單個查詢中將多個節點插入到 xml 字段

      Insert multiple nodes to xml field in single query(在單個查詢中將多個節點插入到 xml 字段)

        <tbody id='vgraa'></tbody>
      <legend id='vgraa'><style id='vgraa'><dir id='vgraa'><q id='vgraa'></q></dir></style></legend>

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

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

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

                本文介紹了在單個查詢中將多個節點插入到 xml 字段的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我有一個表(我們稱她為 t),其中包含字段 id(int) 和 XmlField(xml).

                I'm having a table (let's call her t) that contains the fields id(int) and XmlField(xml).

                我嘗試在一個查詢中添加多個節點,但無論我嘗試什么,總是出現錯誤.

                I try to add multiple node in one query but no matter what I tried I keep getting errors.

                查詢是:

                update t 
                set XmlField.modify('insert <f1>value here</f1><f2>value there</f2> into (/xmldoc)') 
                

                我收到錯誤:

                XQuery [t.XmlField.modify()]:'' 附近的語法錯誤,預期為 'as'、'into'、'before' 或 'after'.

                XQuery [t.XmlField.modify()]: Syntax error near '', expected 'as', 'into', 'before' or 'after'.

                當我嘗試僅添加一個 xml 節點時,它正在工作(示例):

                When I trying to add only one xml node it's working (example):

                update t set XmlField.modify('insert <f1>value here</f1> into (/xmldoc)') 
                

                當我嘗試添加這樣的嵌套節點時它也能正常工作:

                it's also working when I try to add nested nodes like this:

                update t set XmlField.modify('insert <f><f1>value here</f1><f2>value there</f2></f> into (/xmldoc)') 
                

                有什么辦法可以實現嗎?

                Is there any way to make it happen?

                推薦答案

                SQL Server 文檔確實很清楚地說明 insert 語句可以處理多個節點.所以我的猜測是你的問題只是一個語法錯誤.(Microsoft 語法與 XQuery Update Facility 規范,但很相似.)

                The SQL Server documentation does say pretty clearly that the insert statement can handle multiple nodes. So my guess is that your problem is just a syntax error. (The Microsoft syntax varies slightly from that defined in the XQuery Update Facility spec, but it's recognizably similar.)

                我會嘗試將元素 f1 和 f2 組合成一個序列并將它們括在括號中(規范在這里需要一個 ExprSingle,這意味著不允許使用頂級逗號):

                I'd try making the elements f1 and f2 into a sequence and wrapping them in parentheses (the spec requires an ExprSingle here, which means no top-level commas are allowed):

                update t 
                set XmlField.modify(
                  'insert (<f1>value here</f1>, <f2>value there</f2>) into (/xmldoc)') 
                

                (未針對 SQL Server 進行測試.)

                (Not tested against SQL Server.)

                這篇關于在單個查詢中將多個節點插入到 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 移動到文件存儲)
              1. <small id='pZP9t'></small><noframes id='pZP9t'>

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

                          <legend id='pZP9t'><style id='pZP9t'><dir id='pZP9t'><q id='pZP9t'></q></dir></style></legend>
                          主站蜘蛛池模板: 99精品国产一区二区三区 | av官网在线| 神马久久春色视频 | 99久久99久久精品国产片果冰 | 福利视频网 | 亚洲精品久久久久中文字幕二区 | 精国产品一区二区三区四季综 | 精品99在线 | 欧美日韩国产在线观看 | 在线观看精品视频网站 | 91免费视频观看 | 亚洲精品久久久久久一区二区 | 亚洲一区视频在线 | 日韩免费一级 | 成人在线免费观看 | 日韩欧美国产精品一区 | 国产成人精品高清久久 | 91久久国产综合久久 | 九七午夜剧场福利写真 | av在线播放网 | 久久男女视频 | 欧美在线一二三 | 日本国产一区二区 | 国产98色在线 | 中文字幕亚洲区 | 美女日批免费视频 | 日韩中文一区二区三区 | 二区亚洲 | 免费在线观看成人av | 亚洲国产精品一区二区久久 | 色在线视频网站 | 亚洲欧美日韩精品久久亚洲区 | 国产精品久久久久久久久久久免费看 | 欧美色综合天天久久综合精品 | 成人性生交大片免费看r链接 | 欧美偷偷操 | 一区二区三区精品视频 | 久久er99热精品一区二区 | 国产福利在线 | 狠狠干天天干 | 精品一区二区三区在线观看国产 |