Oracle Error PLS-00428: an INTO clause is expected in this SELECT statement

Oracle Error Message

PLS-00428: an INTO clause is expected in this SELECT statement

Reason for the Error

The INTO clause of a SELECT INTO statement was omitted. For example, the code might look like SELECT deptno, dname, loc FROM dept WHERE … instead of SELECT deptno, dname, loc INTO dept_rec FROM dept WHERE … In PL/SQL, only a subquery is written without an INTO clause.

Solution

Add the required INTO clause.