我有两个要合并的表结果:
table1:
name
product
table2:
name
product
我可以
select * from table1 where product LIKE 'p%' limit 3
并且:
select * from table2 where product LIKE 'p%' limit 3
但是当我联合时,结果是:
(select * from table1 where product LIKE 'p%' limit 3)
UNION ALL
(select * from table2 where product LIKE 'p%' limit 3)
我只得到第一个查询的结果。怎么了?