Entering content frame

-7008: Updates of this table not allowed 

Explanation:

The specified table cannot be updated for the following possible reasons:

...

       1.      The table specified in an SQL statement with CURRENT OF and result table name is not the table indicated in the FROM clause of the QUERY statement that generated the result table.

       2.      The SQL statement contains a correlated subquery that uses the table to be updated.

       3.      The QUERY expression was specified with FOR UPDATE, The QUERY expression contains statement parts that are not permitted together with the FOR UPDATE specification (DISTINCT, GROUP CLAUSE, UNION, INTERSECT, EXCEPT, SUBQUERY).

       4.      In SQL mode DB2 the QUERY EXPRESSION of an SQL statement with specification of CURRENT OF <result_table_name> contains the FOR FETCH ONLY statement.

User Action:

...

       1.      Replace the table name with that used in the FROM clause of the QUERY statement or repeat the QUERY statement using the required table name.

       2.      In the case of the correlated subquery, the desired effect can be achieved by generating a named result table which is then used in the subquery.

       3.      You must remove the FOR UPDATE or DISTINCT specification, or similar.

       4.      Repeat the QUERY expression without FOR FETCH ONLY, or omit the specification of CURRENT OF <result_table_name> in the SQL statement.

 

Leaving content frame