INSERT INTO命令用于在表中插入新行。
以下SQL在"Customers"表中插入一條新記錄:
INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country) VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen 21', 'Stavanger', '4006', 'Norway');
下面的SQL將插入一個(gè)新的記錄,但僅在插入數(shù)據(jù)"CustomerName", "City"和"Country"列(客戶ID將自動(dòng)更新):
INSERT INTO Customers (CustomerName, City, Country) VALUES ('Cardinal', 'Stavanger', 'Norway');