我已经使用MS Access数据库创建了一个C#项目,我想将数据从一个表复制到另一个表中,是否有一种简单的方法将所有记录从一个表复制到另一个表中?
If the columns are in the right order, you can do
insert into table2
select * from table1
If the order of the columns are different between the two tables, you can do
insert into table2 (column1, column2, column3)
select column1, column2, column3 from table1
How does this sound?
INSERT INTO Table2( Field1, Field2, FieldN )
SELECT Field1, Field2, FieldN
FROM Table1;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.