Categories
How to use WHERE IN as a data filter?
Where in adds results, but you need to filter:
SELECT DISTINCT v.id, v.*, v.english_level FROM vacancies v LEFT JOIN specializations s ON s.id = v.specialization_id LIMIT 30
Answer the question
In order to leave comments, you need to log in
WHERE v.id IN (1,2,3,4)
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question