Skip to Main Content

Oracle Database Discussions

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!

Concatenation and Union all

skdeFeb 28 2010 — edited Feb 28 2010
Hi,

From Oracle 9i performance guide:

"Concatenation is useful for statements with different conditions combined with an OR clause"

"If a query contains a WHERE clause with multiple conditions combined with OR operators, then the optimizer transforms it into an equivalent compound query that uses the UNION ALL set operator, if this makes the query execute more efficiently"

Can anyone tell me when concatenation is better than union and vice versa?
This post has been answered by Jonathan Lewis on Feb 28 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2010
Added on Feb 28 2010
3 comments
1,327 views