Entering content frame

Background documentation Restrictions for UPDATE Statements Locate the document in the library structure

The following restriction applies to the usage of search conditions for SQL statements that contain UPDATE: if the new value of a column is calculated in an arithmetic expression, then the Optimizer cannot use an inversion of this column (i.e. the corresponding index) for a search.

Example

UPDATE <table_name>

SET columnx = columnx + 3

WHERE columnx IN (100, 103, 106, 109, 112)

This SQL statement could lead to errors in the results if the inversion lists were processed step-by-step with the values 100, 103, 106, 109, and 112.

The same restriction applies to SQL statements that contain FOR UPDATE in the SELECT part.

 

Leaving content frame