<tfoot id='9sYlV'></tfoot>

    <small id='9sYlV'></small><noframes id='9sYlV'>

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

        列名或提供的值数量与表定义不匹配

        时间:2023-10-10
      1. <legend id='n0QtH'><style id='n0QtH'><dir id='n0QtH'><q id='n0QtH'></q></dir></style></legend>

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

            <tbody id='n0QtH'></tbody>
            • <tfoot id='n0QtH'></tfoot>
                • <bdo id='n0QtH'></bdo><ul id='n0QtH'></ul>

                  <i id='n0QtH'><tr id='n0QtH'><dt id='n0QtH'><q id='n0QtH'><span id='n0QtH'><b id='n0QtH'><form id='n0QtH'><ins id='n0QtH'></ins><ul id='n0QtH'></ul><sub id='n0QtH'></sub></form><legend id='n0QtH'></legend><bdo id='n0QtH'><pre id='n0QtH'><center id='n0QtH'></center></pre></bdo></b><th id='n0QtH'></th></span></q></dt></tr></i><div id='n0QtH'><tfoot id='n0QtH'></tfoot><dl id='n0QtH'><fieldset id='n0QtH'></fieldset></dl></div>
                  本文介绍了列名或提供的值数量与表定义不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 SQL Server 中,我尝试使用以下查询将值从一个表插入到另一个表:

                  In the SQL Server, I am trying to insert values from one table to another by using the below query:

                  delete from tblTable1
                  
                  insert into tblTable1 select * from tblTable1_Link
                  

                  我收到以下错误:

                  列名或提供的值数量与表定义不匹配.

                  Column name or number of supplied values does not match table definition.

                  我确信这两个表具有相同的结构、相同的列名和相同的数据类型.

                  I am sure that both the tables have the same structure, same column names and same data types.

                  推荐答案

                  它们的结构不一样...我可以保证它们是不同的

                  They don't have the same structure... I can guarantee they are different

                  我知道你已经创建了它... 数据库中已经有一个名为 'tbltable1' 的对象

                  I know you've already created it... There is already an object named ‘tbltable1’ in the database

                  您可能想要的是这个(这也解决了您的其他问题):

                  What you may want is this (which also fixes your other issue):

                  Drop table tblTable1
                  
                  select * into tblTable1 from tblTable1_Link
                  

                  这篇关于列名或提供的值数量与表定义不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:树结构中的递归求和 下一篇:SQL Server 中最优雅的生成排列的方法

                  相关文章

                • <legend id='Rj7gZ'><style id='Rj7gZ'><dir id='Rj7gZ'><q id='Rj7gZ'></q></dir></style></legend>

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

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

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

                    1. <tfoot id='Rj7gZ'></tfoot>