I try to select rows from a table using a regex. The pattern is the result of a select.
I have the following compilation error on the select that use regexp_like:
PLS-00428: an INTO clause is expected in this SELECT statement
declare
pattern varchar2;
begin
select columns
into pattern
from table a
where conditions;
select *
from table2
where regexp_like(column, pattern);
end;
I don't understand why I should use an into clause...