how to select all the data from many tables? i try
`"SELECT * FROM `table1`, `table2`"`
,
but result none understandable for me. it returns only some rows from table1
, and 3 times all the data from table2
. i've red one same question here, but don't understand the answer. so could you help me? thanks in advance.
update:
when i try
(SELECT * FROM `table1`) UNION (SELECT * FROM `table2`)
it returns #1222 - The used SELECT statements have a different number of columns