English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The INSERT INTO command is used to insert a new row into a table.
The following SQL inserts a new record into the "Customers" table:
INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country) VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen') 21, 'Stavanger', ''4006, 'Norway');
The following SQL will insert a new record, but only if the data for "CustomerName" "City" and "Country" columns (Customer ID will be automatically updated):
INSERT INTO Customers (CustomerName, City, Country) VALUES ('Cardinal', 'Stavanger', 'Norway');