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

        <bdo id='acteR'></bdo><ul id='acteR'></ul>
      <tfoot id='acteR'></tfoot>
    1. <legend id='acteR'><style id='acteR'><dir id='acteR'><q id='acteR'></q></dir></style></legend>
      1. <small id='acteR'></small><noframes id='acteR'>

      2. 将两个xml片段合并为一个?

        时间:2023-06-07
          <tbody id='wBppo'></tbody>
      3. <tfoot id='wBppo'></tfoot>
          • <bdo id='wBppo'></bdo><ul id='wBppo'></ul>

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

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

                  <legend id='wBppo'><style id='wBppo'><dir id='wBppo'><q id='wBppo'></q></dir></style></legend>

                  本文介绍了将两个xml片段合并为一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  如何将@a@b的xml内容合并成@c?

                  How to merge the xml content of @a and @b into @c?

                  declare @a xml = (select 1 aaa for xml path('AAAs'));
                  declare @b xml = (select 1 bb1, 2 bb2 for xml path('BBBs'));
                  declare @c xml = ... @a + @b ....?
                  

                  我需要将合并的 xml 传递给存储过程.

                  I need to pass the merged xml to a stored procedure.

                  我知道可以将 xml 转换为 varchar 并连接它们并将其转换回 xml.有什么更好的方法吗?xml 内容可能很大.

                  I know it's possible to cast the xml to varchar and concat them and convert it back to xml. Any better approach? The xml content can be big.

                  推荐答案

                  好的,我找到了一种方法

                  OK, I found one way

                  select @a, @b for xml path ('')
                  

                  这篇关于将两个xml片段合并为一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:SQL Server - 包含 FOR XML 要求的无效 XML 标识符; 下一篇:从 varchar(max) 列中选择 XML

                  相关文章

                  最新文章

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

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

                    • <bdo id='kb5L6'></bdo><ul id='kb5L6'></ul>

                      <legend id='kb5L6'><style id='kb5L6'><dir id='kb5L6'><q id='kb5L6'></q></dir></style></legend>
                      <tfoot id='kb5L6'></tfoot>