“select * into table” Will it work for inserting data into existing table

后端 未结 4 1998
面向向阳花
面向向阳花 2021-02-05 10:58

I am trying to insert data from one of my existing table into another existing table.

Is it possible to insert data into any existing table using select * into

4条回答
  •  说谎
    说谎 (楼主)
    2021-02-05 11:14

    You should try

    INSERT INTO ExistingTable (Columns,..)
    SELECT Columns,...
    FROM OtherTable
    

    Have a look at INSERT

    and SQL SERVER – Insert Data From One Table to Another Table – INSERT INTO SELECT – SELECT INTO TABLE

提交回复
热议问题