Insert是T
語句形式為
要求目標表Table
INSERT INTO SELECT語句復制表數據
create TABLE Table
(
a varchar(
b varchar(
c varchar(
CONSTRAINT [PK_Table
(
a ASC
)
) ON [PRIMARY]
create TABLE Table
(
a varchar(
c varchar(
d int
CONSTRAINT [PK_Table
(
a ASC
)
) ON [PRIMARY]
GO
Insert into Table
Insert into Table
Insert into Table
Insert into Table
GO
select * from Table
Insert into Table
GO
select * from Table
GO
drop TABLE Table
drop TABLE Table
語句形式為
要求目標表Table
SELECT INTO FROM創建表並復制表數據
create TABLE Table
(
a varchar(
b varchar(
c varchar(
CONSTRAINT [PK_Table
(
a ASC
)
) ON [PRIMARY]
GO
Insert into Table
Insert into Table
Insert into Table
Insert into Table
GO
select a
GO
select * from Table
GO
drop TABLE Table
drop TABLE Table
原帖地址
From:http://tw.wingwit.com/Article/program/Oracle/201311/17012.html