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

      <small id='4XVpo'></small><noframes id='4XVpo'>

    2. <tfoot id='4XVpo'></tfoot>
    3. <legend id='4XVpo'><style id='4XVpo'><dir id='4XVpo'><q id='4XVpo'></q></dir></style></legend>

        SQL Server - 包含 FOR XML 要求的无效 XML 标识符;

        时间:2023-06-07

          <tbody id='cnWka'></tbody>

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

      1. <i id='cnWka'><tr id='cnWka'><dt id='cnWka'><q id='cnWka'><span id='cnWka'><b id='cnWka'><form id='cnWka'><ins id='cnWka'></ins><ul id='cnWka'></ul><sub id='cnWka'></sub></form><legend id='cnWka'></legend><bdo id='cnWka'><pre id='cnWka'><center id='cnWka'></center></pre></bdo></b><th id='cnWka'></th></span></q></dt></tr></i><div id='cnWka'><tfoot id='cnWka'></tfoot><dl id='cnWka'><fieldset id='cnWka'></fieldset></dl></div>
            <bdo id='cnWka'></bdo><ul id='cnWka'></ul>
          • <legend id='cnWka'><style id='cnWka'><dir id='cnWka'><q id='cnWka'></q></dir></style></legend>
            • <tfoot id='cnWka'></tfoot>
                  本文介绍了SQL Server - 包含 FOR XML 要求的无效 XML 标识符;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我正在运行此查询并遇到以下提到的错误.有人可以帮忙吗?

                  I'm running this query and getting below mentioned error. Can anyone help?

                  列名中间名"包含无效的 XML 标识符对于 XML;' '(0x0020) 是第一个出错的字符.

                  Column name 'Middle Name' contains an invalid XML identifier as required by FOR XML; ' '(0x0020) is the first character at fault.

                  SELECT 
                      Username as [LastName],
                      '' AS [Middle Name],
                      '' AS Birthdate,
                      '' AS [SSN],
                      0 AS [Wage Amount]
                      FROM
                      Employee
                       FOR XML PATH
                  

                  推荐答案

                  XML 元素或属性名称中不能有空格.使用

                  You can't have spaces in XML element or attribute names. Use

                  SELECT Username AS [LastName],
                         ''       AS [MiddleName],
                         ''       AS Birthdate,
                         ''       AS [SSN],
                         0        AS [WageAmount]
                  FROM   Employee
                  FOR XML PATH 
                  

                  这篇关于SQL Server - 包含 FOR XML 要求的无效 XML 标识符;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:SQL Server 中的 XML 解析 下一篇:将两个xml片段合并为一个?

                  相关文章

                  最新文章

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

                    <tfoot id='XIe1Q'></tfoot>

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