Skip to main content

Always specify the columns in an INSERT statement

ZPA rule for PL/SQL and Oracle SQL · InsertWithoutColumns

Specify the columns in an INSERT statement to guarantee that the code won't stop working when a new column is added.

Examples​

Noncompliant Code Example
insert into tab values (1);
Compliant Solution
insert into tab (col) values (1);