sqlserver copy table data to another table

In SQL Server, if the target table exists:

insert into 目标表 select from 原表;

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

select into 目标表 from 原表;

In Oracle, if the target table exists:

insert into 目标表 select from 原表;

commit ;
In Oracle, if the target table does not exist:
create  table  目标表  as  select  from  原表;

Guess you like

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