Oracle Error ORA-35578: (SQLOUT11) SQL cursor ‘number’ cannot be used with CURRENT OF syntax

Oracle Error Message

ORA-35578: (SQLOUT11) SQL cursor ‘number’ cannot be used with CURRENT OF syntax

Reason for the Error

The CURRENT OF syntax in the WHERE clause tried to use a cursor that was not declared with the FOR UPDATE [ of ] SQL syntax.

Solution

Add the FOR UPDATE [ OF ] SQL syntax to the cursor specified.