From time to time you need to insert a row of data into a table which has an identity column or a column with the definition containing GENERATED ALWAYS
.
Specifying a value for the field won't work as the system wants to generated the value leaving your with an SQL error behind.
But there are ways to add a row:
OVERRIDING USER VALUE
OVERRIDING SYSTEM VALUE
DEFAULT
as the value for the identity columnSee IBM Knowledge Center.