SQL Server : INSERT from one table to another table

后端 未结 3 1527
温柔的废话
温柔的废话 2021-01-23 03:25

I am facing a problem regarding inserting data from one table to another table, with the same table structure, but with different column positions.

Example:

Tabl

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-23 04:01

    test this query , it should work:

    insert into emp1 select Name, Age, Salary from emp2;
    

    and I suggest you to read this tutorial.

提交回复
热议问题