>
Part | Description |
target | The name of the table or query to append records to. |
externaldatabase | The path to an external database. For a description of the path, see the IN clause. |
source | The name of the table or query to copy records from. |
field1, field2 | Names of the fields to append data to, if following a target argument, or the names of fields to obtain data from, if following a source argument. |
tableexpression | The name of the table or tables from which records are inserted. This argument can be a single table name or a compound resulting from an INNER JOIN, LEFT JOIN, or RIGHT JOIN operation or a saved query. |
value1, value2 | The values to insert into the specific fields of the new record. Each value is inserted into the field that corresponds to the value's position in the list: value1 is inserted into field1 of the new record, value2 into field2, and so on. You must separate values with a comma, and enclose text fields in double quotation marks (" "). |
INSERT INTO Customers SELECT [New Customers].* FROM [New Customers];This example creates a new record in the Employees table.
INSERT INTO Employees (FirstName,LastName, Title)This example selects all trainees from a hypothetical Trainees table who were hired more than 30 days ago and adds their records to the Employees table.
VALUES ("Harry", "Washington", "Trainee");
INSERT INTO Employees SELECT Trainees.* FROM Trainees
WHERE HireDate < Now() - 30;