Current location - Loan Platform Complete Network - Big data management - In ACCESS database, how to insert certain records of certain fields of one table into another table by SQL statement?
In ACCESS database, how to insert certain records of certain fields of one table into another table by SQL statement?
To insert certain records of certain fields of one table into another table by SQL statement, refer to the following example:

INSERT INTO Table 1 ( Field 1, Field 2, Field 3 )

SELECT Table 2.Field 1, Table 2.Field 2, Table 2.Field 3

FROM Table 2

WHERE Table2.Field3>20

This example implements appending the values of Field1, Field2, and Field3 in Table 2 that satisfy the conditions to the corresponding fields in Table 1, which requires that the corresponding fields have the same data type and not necessarily the same name