SQL SELECT INTO Example
Make a Backup Copy - Now we want to make an exact copy of the data in our "Persons" table.
We use the following SQL statement:
| SELECT * INTO Persons_Backup FROM Persons |
We can also use the IN clause to copy the table into another database:
| SELECT * INTO Persons_Backup IN 'Backup.mdb' FROM Persons |
We can also copy only a few fields into the new table:
| SELECT LastName,FirstName INTO Persons_Backup FROM Persons |
No comments:
Post a Comment