Avoid masking the TOO_MANY_ROWS exception
ZPA rule for PL/SQL and Oracle SQL · TooManyRowsHandler
When a SELECT INTO statement causes the predefined exception TOO_MANY_ROWS the values of the variables in the INTO clause are undefined.
Examples
begin
select empno
into var
from emp;
exception
when too_many_rows then
null;
end;
begin
select empno
into var
from emp;
exception
when too_many_rows then
var := null;
end;