I have 3 tables, with 3 fields all the same. I basically want to select information from each table
For example:
userid = 1
I want to select data from all 3 tables, where userid = 1
I am currently using:
SELECT r.*,
p.*,
l.*
FROM random r
LEFT JOIN pandom p ON r.userid = p.userid
LEFT JOIN landom l ON l.userid = r.userid
WHERE r.userid = '1'
LIMIT 0, 30
But it doesn’t seem to work.
So you mean that you want
the same 3 fieldsfrom all 3 tables?The fields don’t have to be named the same, but the same types need to line up in position 1, 2 and 3.
The way the limits work is:
random.random, it will try to fill up to 30 frompandomand only finallylandom