SQL statement to copy data from one table to another table

In SQL Server, if the target table exists:

insert  into target table select  *  from original table;

In SQL Server, if the target table does not exist:

select  *  into target table from original table;

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325942193&siteId=291194637