80 DB2 Recovery Expert for Multiplatforms
5.5.8 GENERATED ALWAYS columns
If a column is defined as GENERATED ALWAYS, this means that DB2 generates
values for the column. The user is not allowed to specify a value for the column.
This causes a problem when log analysis generates INSERTs in Undo or Redo
SQL for a table with a GENERATED ALWAYS column. The Redo or Undo SQL
cannot use specific values in the GENERATED ALWAYS column, so it has to use
DEFAULT as the value. This means that, when you recover a table with a
GENERATED ALWAYS column using redo or Undo SQL that contains INSERTs,
the values inserted into the GENERATED ALWAYS column may not be the same
as the original values. This is unavoidable due to the design of GENERATED
ALWAYS colu