select into from 和 insert into select都是用来复制表,两者的主要区别为: select into from 要求目标表不存在,因为在插入时会自动创建.insert into select from 要求目标表存在 下面分别介绍两者语法 INSERT INTO SELECT语句 语句形式为: Insert into Table2(field1,field2,...) select value1,value2,... from Tabl…
转自:http://www.studyofnet.com/news/182.html select into from 和 insert into select都是用来复制表,两者的主要区别为: select into from 要求目标表不存在,因为在插入时会自动创建.insert into select from 要求目标表存在 INSERT INTO SELECT语句: 语句形式为: Insert into Table2(field1,field2,...) select value1…
一.select into from 语句形式为:Insert into Table2(field1,field2,...) select value1,value2,... from Table1 应用场景:常用于创建表的备份复件或者用于对记录进行存档 example1: example2: SELECT Persons.LastName,Orders.OrderNo INTO Persons_Order_Backup FROM Persons INNER JOIN Orders ON…