Simple mysql question i am trying to write a query based on a criteria of four values however it does not seem to be working, here is and example of the query:
select * from table_1 where c=0 d=0 a=0 u=0 or c=1 d=1 a=1 u=1
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Your
WHERElogic is incorrect:You need to group your statements together in parenthesis and still use
ANDfor any conditions that need to be grouped together.