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

前端 未结 12 1836
轮回少年
轮回少年 2020-11-29 04:33

In 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 tb         


        
12条回答
  •  余生分开走
    2020-11-29 05:00

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

    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
    

提交回复
热议问题