I am executing the following query:
explain plan for
with Foo
as (
select * from my_table
)
select * from Foo
where x = 7;
This results in an invalid SQL statement exception in Oracle10g. Without the explain plan the with statement executes correctly. Why does this error occur within the context of SQL Developer?