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.
I need MySQL select query like
select wt_id,wt_name from work_type where cat_id=1,2,5..;
Is it possible?
Use IN operator ex.
... where cat_id IN (1,2,5..)
Add a comment
You just have to use IN operator
SELECT wt_id, wt_name FROM work_type WHERE cat_id IN (1,2,5..);
You can use SQL IN operator.
If you have any question please comment below.
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.