Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
(when selecting data from tables in MYSQL database) something like this:
WHERE some_column = some_value, other_column = other_value
If not, Is there other simple method rather than going into "if loops"
WHERE some_column=some_value AND other_column=other_value
if
Yes, just separate them with ANDs:
AND
Add a comment
WHERE some_column = some_value AND other_column = other_value
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
WHERE some_column=some_value AND other_column=other_value? Or am I missing something?ifis not a loop and there is nothing wrong in them anyway. most of time you have to useifstatements to create a dynamical mysql query.