Entering content frame

Background documentation Restrictions for UPDATE Statements Locate the document in its SAP 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 an inversion of this column (the corresponding index) cannot be used for a search.

Example

UPDATE <table_name>

SET columnx = columnx + 3

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

This SQL statement can 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 applies to SQL statements that contain FOR UPDATE in the SELECT part.

 

Leaving content frame