MYSQL question - AND or OR?
Posted
by U22199
on Stack Overflow
See other posts from Stack Overflow
or by U22199
Published on 2010-05-08T14:01:47Z
Indexed on
2010/05/08
14:08 UTC
Read the original article
Hit count: 126
mysql
|boolean-logic
Which is a better way to select ans and quest from the table?
SELECT * FROM tablename WHERE option='ans' OR option='quest'";
OR
SELECT * FROM tablename WHERE option='ans' AND option='quest'";
Thanks so much!
© Stack Overflow or respective owner