MySQL Forums
Forum List  »  MyISAM

Many request or big request (many OR)?
Posted by: Francoi -
Date: March 06, 2011 11:21AM

Hello,

I have a question : I need to do a big request :
(1) SELECT id FROM table WHERE chp='' OR chp='' OR chp='' OR chp='' (... > 100 times).

Is it better to do :
- 100 very simple request : SELECT id FROM table WHERE chp='' (chp is a Primary Index)
- A big request like (1)


Thanks !

François

Options: ReplyQuote


Subject
Views
Written By
Posted
Many request or big request (many OR)?
3892
March 06, 2011 11:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.