bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL VALUES Keyword

Flash cards

Review the key moves

1/4
Core idea

What is the main idea behind SQL VALUES Keyword?

Lesson checks

Practice each idea before moving on

Short Mimo-style checks built from this lesson's code, terms, and sequence.

1Quick choice

Which statement best captures the main point of this lesson?

2Fill blank

Complete the missing token from the example code.

___ INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country)
3Order

Put the learning moves in the order that makes the concept easiest to apply.

The following SQL will insert a new record, but only insert data in the "CustomerName", "City", and "Country" columns (CustomerID will be updated automatically):
The following SQL inserts a new record in the "Customers" table:
The VALUES command specifies the values of an INSERT INTO statement.

Values

The VALUES command specifies the values of an INSERT INTO statement.

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 UPDATE Keyword

Next

SQL VIEW Keyword