General Rules for INSERT in Embedded SQL and Stored Procedures
The following rules apply to both forms of INSERT in embedded SQL and stored procedures:
a Define each column value of the row to be NULL.
b Assign each inserted value to the corresponding column.
IF the result row has this value for any NOT NULL column … |
THEN the insertion … |
any non-null |
succeeds. |
a null |
fails. SQLCODE is set to -1002. |