Help me choose a dialogue on users. For example, there are values:
первый user_id = 1, второй user_id = 2. Try
SELECT u.dialog_id FROM users u1 LEFT JOIN users u2 ON u2.dialog_id = u.dialog_id WHERE u.user_id = 1 AND u2.user_id = 2 AND u2.dialog_id IS NOT NULL Source: https://ru.stackoverflow.com/questions/903690/
All Articles
dialog_idis not an input, but a parameter returned by the query. - Akina