English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

SQL VALUES 关键字使用方法及示例

Referencia de palabras clave SQL

VALUES

VALUES命令指定INSERT INTO语句的值。

以下SQL在"Customers"表中插入一条新记录:

INSERT INTO Customers (CustomerName, ContactName, Address, City, PostalCode, Country)
VALUES ('Cardinal', 'Tom B. Erichsen', 'Skagen') 21', 'Stavanger', '4006', 'Norway');

El siguiente SQL insertará un nuevo registro, pero solo si se insertan datos Columnas "City" y "Country" (el ID del cliente se actualizará automáticamente):

INSERT INTO Customers (CustomerName, City, Country)
VALUES ('Cardinal', 'Stavanger', 'Norway');

Referencia de palabras clave SQL