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

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

  • <tfoot id='L12Wd'></tfoot>

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

        尝试从 Select 创建表 - SQL Server 2008 抛出错误

        时间:2023-10-09

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

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

              <bdo id='DLrH8'></bdo><ul id='DLrH8'></ul>
              <tfoot id='DLrH8'></tfoot>
                • 本文介绍了尝试从 Select 创建表 - SQL Server 2008 抛出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在尝试使用内部选择语句创建一个表...

                  Hi I am trying to create a table using inner select statement...

                  例如:

                  CREATE TABLE JmxMonSer AS (SELECT * FROM services WHERE monitoring_enabled = 1);
                  

                  但不断出错:

                  关键字AS"附近的语法不正确,严重性为 15

                  请指教

                  推荐答案

                  怎么样:

                  SELECT * into JmxMonSer FROM services WHERE monitoring_enabled=1
                  

                  如果表已经存在(并且列类型和顺序排列),您可以使用:

                  If the table already exists (and the columns types and ordering line up), you can use:

                  INSERT INTO JmxMonSer SELECT * FROM services WHERE monitoring_enabled=1
                  

                  这篇关于尝试从 Select 创建表 - SQL Server 2008 抛出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:相当于 WM_CONCAT 函数的 SQL Server 下一篇:INSERT 语句与 FOREIGN KEY 约束冲突

                  相关文章

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

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

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

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