1.SQL Server中,若是目标表存在:sql
insert
into
目标表
select
*
from
原表;
code
2.SQL Server中,,若是目标表不存在:it
select
*
into
目标表
from
原表;
table
MySQL中不支持这种语法,变通一下,本身测了可用:class
Create table Table2 (Select * from Table1);
3.Oracle中,若是目标表存在:select
insert
into
目标表
select
*
from
原表;
语法
commit
;
create
table
目标表
as
select
*
from
原表;