← All errors

SQLCODE -151

SQL0151 Column not updatable

IBM message text
Column &1 in table &2 in &3 is not updatable.
SQLCODE
-151
SQLSTATE
42808

Most common cause

An attempt to update a view column derived from an expression, a constant or a special register.

Other causes

  • A logical file field defined as input only in the DDS.
  • An INSERT without a column list on a view with non-updatable columns.

How to fix it

Remove the column from the list or the SET, and update the source column on the base table.

Related errors

Text and codes from IBM documentation for 7.6. Checked on .