There are 5 tables:
1) games:
g_id | country | league | tour | team1 | team2 | и еще 10 2) events:
e_id | name | eTime | g_id | 3) In general, everyone has a different number of fields, I try to take all the data (all fields) from all 5 tables by condition, for example:
SELECT * FROM games INNER JOIN events ON games.g_id = events.g_id INNER JOIN stats ON games.g_id = stats.g_id INNER JOIN lineups ON games.g_id = lineups.g_id INNER JOIN ads ON games.g_id = ads.g_id WHERE games.team1 = 'Арсенал' As a result, the request in phpmyadmin hangs (on the plate says Loading ... and everything hangs). I tried the same query with a smaller number of tables with 2-3 data loaded but the “Loading” label also hangs for a long time, although after the written request it took 0.1 seconds. Simple requests run quickly (Select * from games)
Is this a valid query, can you somehow get all the data differently? Please tell me who is not hard ...