Is it possible to use a declared cursor in a plain SQL select expression? Similar to the (non-working) example below:
declare
cursor c is select * from user_tables;
cnt number;
begin
select 1 into cnt from c;
dbms_output.put_line('cnt: ' || cnt);
end;
/
Basically, is it possible to reference and use a cursor only using plain SQL?