VALUES

SQL VALUES Keyword

The VALUES keyword is used with the INSERT INTO command to specify the values to be inserted into a new row of a table. You can insert values for all columns or for specific columns. Make sure that required (NOT NULL) and PRIMARY KEY columns are properly filled.

Tutorials dojo strip

SQL VALUES Syntax

SQL

SQL VALUES Insert All Columns into Doctors Table Example

This query inserts a new row into the Doctors table. Since existing doctor_id values are 1–10, we will use doctor_id = 11.

SQL

SQL VALUES Insert Required Columns into Patients Table Example

This query inserts a new patient record into the Patients table with the specified patient_id, first name, last name, date of birth, and gender.

SQL

SQL VALUES Labs

Tutorials dojo strip