SQL Server - Create a copy of a database table and place it in the same database?

前端 未结 7 1579
情书的邮戳
情书的邮戳 2020-12-23 02:33

I have a table ABC in a database DB. I want to create copies of ABC with names ABC_1, ABC_2, ABC_3 in the same DB. How can I do that using either Management Studio (preferab

7条回答
  •  抹茶落季
    2020-12-23 03:14

    1st option

    select *
      into ABC_1
      from ABC;
    

    2nd option: use SSIS, that is right click on database in object explorer > all tasks > export data

    • source and target: your DB
    • source table: ABC
    • target table: ABC_1 (table will be created)

提交回复
热议问题