INSERT
The INSERT operator is used to put new records into a table. Normally it is not used to load an entire database (since other utilities can do that more efficiently). Aside from this, older implementations of SQL use it to remove columns from existing tables (before the ALTER TABLE had this capability).
Format1:
INSERT INTO table (fieldlist) SELECT fieldlist FROM table WHERE append_criteria;
OR
Format2
INSERT INTO table (col1, col2...) VALUES (val1, val2...);
On the general format2 above, you can specify the columns in any order you wish and the system will match them to the appropriate table attributes.
Komentar 0