I am wondering if there is such command as to select a item from the database based on 2 or more rows.
For Example:
SELECT * FROM 'table' WHERE 'row1' OR 'row2' OR 'row3' LIKE 'myValue'
is there such thing as OR ?
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.
No, you need to specify each condition explicitly:
Important notes:
quotes(') around column names. Only backticks`are allowedIf you don’t use
LIKEfacilities like_or%– don’t use it, and use=instead. In this case your condition can be reduced to: