Subquery Factoring Fails With PLS-103 Encountered the symbol "WITH" when expecting one of the following

(Doc ID 1455227.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version and later
Information in this document applies to any platform.


A simple example using "WITH" clause  (subquery factoring) fails with a parsing error

Works when the SQL is run outside a plsql code block.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms