The database has the following list of tables:
dialog_123_1 dialog_123_2 dialog_1_123456 dialog_2_1
All that after after the symbol _ is logins. THAT is, dialog_123_1 is a dialog of user 123 and user 1. I am trying to write a query to get dialogs, for example a user 2. I use this query, but it produces extra tables:
show TABLEs LIKE 'dialog%2%'
To this request, he issues:
dialog_123_1 dialog_123_2 dialog_1_123456 dialog_2_1