The specified table cannot be updated for the following possible reasons:
- The table specified in an SQL statement with CURRENT OF <RESULT TABLE NAME> is not the table indicated in the <FROM clause> of the <QUERY statement> which generated the result table.
- The SQL statement contains a correlated subquery which uses the table to be updated.
- The <QUERY expression> was specified with FOR UPDATE, but the <QUERY expression> contains statement parts which cannot be used together with a FOR UPDATE specification (DISTINCT, <GROUP CLAUSE>, UNION, INTERSECT, EXCEPT, <SUBQUERY>).
- In SQLMODE DB2 the QUERY EXPRESSION of an SQL statement with specification of CURRENT OF RESULT TABLE NAME contains the FOR FETCH ONLY statement.