how to add data from one table to another

A

Alex

Can anybody advise how to add data (whole table) from one
(temporary) table to another (permanent)?

Thanks
 
J

John Spencer (MVP)

Probably by using an Append (INSERT INTO) query. The exact syntax would be
difficult to say without more understanding of the table structures.

INSERT Into SomeTable (FieldA, FieldC, FieldR)
SELECT FieldX, FieldY, FieldZ
FROM TemporaryTable

This should put FieldX into FieldA, FieldY into FieldC, and FieldZ into FieldR.
 
A

Alex

Thanks a lot.

-----Original Message-----
Probably by using an Append (INSERT INTO) query. The exact syntax would be
difficult to say without more understanding of the table structures.

INSERT Into SomeTable (FieldA, FieldC, FieldR)
SELECT FieldX, FieldY, FieldZ
FROM TemporaryTable

This should put FieldX into FieldA, FieldY into FieldC, and FieldZ into FieldR.

.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top