for j in (select one, c (select 1 of the double),) loop... end loop;... error

declare
begin
 for cur in (select (select 1 from dual) col from dual)
 loop
  null;
 end loop;
end;
TOAD, OK, BUT in the wrong FORM!

Published by: indoracle on February 23, 2012 02:38

Published by: indoracle on February 23, 2012 02:40

As you may or may not know, the PL/SQL engine forms is not the same as that of the database; Forms is generally a lower version than the database. As for your code block, please try this instead:

BEGIN
  FOR cur in ( SELECT col1 FROM ( SELECT 1 AS col1 FROM dual) ) LOOP
    NULL;
  END LOOP;
END;

This form of the loop For cursor to compile in 10.1.2 Forms. The problem was that the Forms PL/SQL engine could not derive your view online column.

Hope this helps,
Craig B-)

If someone useful or appropriate, please mark accordingly.

Tags: Oracle Development

Similar Questions

Maybe you are looking for