MySQL Forums
Forum List  »  Optimizer & Parser

Re: sub query
Posted by: Rick James
Date: July 02, 2010 09:01PM

WHERE ( discount_type = 1 AND expiry > NOW() )
OR discount_type = 2

You will need some more indexes when you have lots of rows.

Options: ReplyQuote


Subject
Views
Written By
Posted
2895
July 01, 2010 05:33AM
Re: sub query
1484
July 02, 2010 09:01PM
1412
July 02, 2010 10:39PM


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.