Oracle Error PLS-00363: expression ‘string’ cannot be used as an assignment target

Oracle Error Message

PLS-00363: expression ‘string’ cannot be used as an assignment target

Reason for the Error

A literal, constant, IN parameter, loop counter, or function call was mistakenly used as the target of an assignment. For example, the following statement is illegal because the assignment target, 30, is a literal: SELECT deptno INTO 30 FROM dept WHERE … — illegal

Solution

Correct the statement by using a valid assignment target.