Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Support WITH clause use using SET operators

jaramillOct 13 2016 — edited Oct 13 2016

Currently when writing a SQL query using Oracle's Set Operators if you have any of the queries (other than the top-most one) using the WITH clause, then Oracle will raise an exception (see below).  Not sure if this is changed in Oracle 12c but if not then another database idea for the next iteration.

ORA-32034: unsupported use of WITH clause

Cause: Inproper use of WITH clause because one of the following two reasons:

   1. nesting of WITH clause within WITH clause not supported yet

   2. For a set query, WITH clause can't be specified for a branch.

   3. WITH clause cannot be specified within parenthesis.

Action: correct query and retry

Comments

Post Details

Added on Oct 13 2016
7 comments
1,270 views