UPDATE/DELETE … WHERE CURRENT OF
Informix®
Informix allows positioned UPDATEs and DELETEs with the "WHERE CURRENT OF cursor" clause, if the cursor has been DECLARED with a SELECT ... FOR UPDATE statement.
Netezza®
Netezza servers do no support SELECT FOR UPDATE, and does not set locks.
Positioned UPDATE/DELETE
with the WHERE CURRENT OF
cursor
clause cannot be supported with Netezza.
Solution
UPDATE/DELETE ... WHERE CURRENT OF
is not supported with Netezza.
As a replacement of WHERE
CURRENT OF
, if the database table is defined with a primary key column, use the value
fetched from the SELECT [FOR UPDATE]
cursor in the
WHERE
clause of the UPDATE/DELETE
statement.