DBAsupport.com Forums - Powered by vBulletin
Results 1 to 10 of 11

Thread: Oracle translates IN clause

Threaded View

  1. #8
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    Quote Originally Posted by WilliamR
    It always uses OR. Sometimes that OR can be implemented as an IN-list iterator in which an index is used for each element in the list.

    You will notice that there is no index on SYS.DUAL but the IN() list is still converted to a set of OR conditions.

    It doesnt always use OR if that´s the case then there wont be in-list iterator. Now if you say in-list iterator is implemented with OR then probably yes probably not, the point is it is not translated into several OR with in-list iterator. If I remember right inlist has something to do with some loopping mechanism in CBO better than concatating result sets

    Regarding DUAL, since there is NO index then of course in-list iterator cannot be used so you see several ORs. If you read the quote I posted it says, a selective index must be present for in-list iterator to work
    Last edited by pando; 07-21-2005 at 02:02 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width