bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL INSERT INTO Keyword

Concept visual

SQL INSERT INTO Keyword

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

INSERT INTO Keyword

Previous

❮ SQL Keywords

Next

Insert Into

The INSERT INTO

command is used to insert new rows in a table. The following SQL inserts a new record in the "Customers" table:

Example

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 insert data in the "CustomerName",
"City", and "Country" columns (CustomerID will be updated automatically):

Example

INSERT INTO Customers (CustomerName, City, Country)

VALUES ('Cardinal', 'Stavanger', 'Norway');

Previous

❮ SQL Keywords

Next

Previous

SQL INNER JOIN Keyword

Next

SQL INSERT INTO SELECT Keyword