Oracle Error PLS-00403: expression ‘string’ cannot be used as an INTO-target of a SELECT/FETCH statement

Oracle Error Message

PLS-00403: expression ‘string’ cannot be used as an INTO-target of a SELECT/FETCH statement

Reason for the Error

A FETCH statement was unable to assign a value to an assignment target in its INTO list because the target is not a legally formed and declared variable. For example, the following assignment is illegal because ‘Jones’ is a character string, not a variable: FETCH my_cur INTO ‘Jones’;

Solution

Check the spelling and declaration of the assignment target. Make sure that the rules for forming variable names are followed.