I want to select information from 6 table I have 2 choice first one with where statement:
SELECT columns
FROM db1,
db2,
db3,
db4,
db5,
db6
WHERE db1.id = $user_id
OR db2.user_id = $user_id
OR db3.user_id = $user_id
OR db4.user_id = $user_id
OR db5.user_id = $user_id
OR db6.user_id = $user_id
$user_id
is php 1variable` that contain user_id;
Second Choice joins tables and one where statement: like here which one is fast, useful and clear?I want to get fast result because I will do that kind of queries with very complicated queries also