Chapter 15 – Data Manipulation Language (DML)

“I tried to draw people more realistically, but the figure I neglected to update was myself.”

- Joe Sacco

INSERT Syntax # 1

The following syntax of the INSERT does not use the column names as part of the command. Therefore, it requires that the VALUES portion of the INSERT match each and every column in the table with a data value or a NULL.

INSERT[INTO]  <table-name>   VALUES

(<literal-data-value>  [ ...,<literal-data-value>   ] ;

The INSERT statement is used to put new row(s) into a table. A status is the only returned value from the database. No rows are returned to the user. This INSERT syntax requires either a data value or a NULL for all the columns in a table. When executed, this code places ...

Get Tera-Tom Genius Series - DB2 SQL now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.