Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jan 2001
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IN Operator (Any Version)

    Is the IN operator more efficient than using OR ?

    Thank you kindly

  2. #2
    Gold Lounger
    Join Date
    Jun 2001
    Location
    Crystal Beach, FL, Florida, USA
    Posts
    3,436
    Thanks
    1
    Thanked 34 Times in 34 Posts

    Re: IN Operator (Any Version)

    you wrote:
    >>Is the IN operator more efficient than using OR ? <<

    My hunch is that it would be as you got more and more items in the list.
    Mark Liquorman
    See my website for Tips & Downloads and for my Liquorman Utilities.

  3. #3
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: IN Operator (Any Version)

    Take a look at the SQL involved behind two queries built with the IN and the OR respectively. The code alone suggests the IN is more efficient.
    Charlotte

Posting Permissions

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