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
原表;