I want to select all rows from my database where the id is equal to either 1,6 or 7.
How can I specify multiple conditions in the query statement?
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.
You can use
ORoperations, or for the id choices, anIN ()clause is appropriate:If you required conditions on different columns, you would use logical
ORorAND: