MySQL Forums
Forum List  »  Newbie

Re: select statement with condition
Posted by: Peter Brawley
Date: October 01, 2014 09:47AM

> Is there any documentaion about this feature?

It's just logic.

> Is there another way

Sure, lots, eg ...

select count(*) from t where col1 = value1 or col1 = value2;
select count(*) from t where col1 in(value1,value2);

Options: ReplyQuote


Subject
Written By
Posted
Re: select statement with condition
October 01, 2014 09:47AM


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.