Simple question. As a single query, pull the values of several cells by id (or something else). For example in the table
id | name ------------- 1 | Вася 2 | Серёжа 3 | Петя 4 | Федя Pull out only Fedya and Seryozh in one request. The first thing you want to write
SELECT * FROM users WHERE id = 2 AND id = 4 But logically this is of course nonsense =) Tell me how to make such a request correctly.