Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 Access 中将数据从一个表传输到另一个表,我有 10 行的表 1 我只需要使用 ProductId、ProductCat 将 ProductId、ProductCat 复制到 Table2
你可以做SQL
这不是我的想法,所以希望它有效!
INSERT INTO Table2 (ProductId, ProductCat) SELECT Table1.ID, Table1.Field1 FROM Table1;
幸运的是,列的名称是可选的,因此您也可以让 Access 复制每一列而不显式命名它们:
insert into [TargetTable] select [SourceTable].* from [SourceTable];
INSERT INTO 语句 (Microsoft Access SQL)