MySQL Forums
Forum List  »  MySQL Query Browser

SQL QUERY ADN/OR
Posted by: lokesh
Date: May 19, 2005 03:40PM

Hi,

How do i write a query with AND/OR operators

SELECT * FROM table1 WHERE state like '%LA%' or country LIKE '%US%' and status='yes'

AND operator is not working if i run this query.

Please let me know.

Thanks,
Lokesh.

Options: ReplyQuote


Subject
Written By
Posted
SQL QUERY ADN/OR
May 19, 2005 03:40PM


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.