真的没有union(至少3.*没有)。
可以通过允许服务器创建存储表来解决这个问题。而且可以使该表为临时表,以便服务器的会话结束后,自动删除该表。
为了更好的性能,可以利用HEAP(在内存中)表。creat temporary table hold_tb1 type=heap select ... from table1 where ...
insert into hold_tbl select ... from table2 where ...
insert into hold_tbl select ... from table3 where ...
...
select * from hold_tb1 order by ...
drop table hold_tb1对于3.23版本,除了必须自己明确定义hold_tb1表中的例外,其想法是类似的,而且结尾处的drop table是强制的,用来防止客户机生命周期之后继续存在:create table hold_tb1(column1 ...,column2 ..., ...) type=heap select ... from table1 where ...
insert into hold_tbl select ... from table1 where ...
insert into hold_tbl select ... from table2 where ...
insert into hold_tbl select ... from table3 where ...
select * from hold_tb1 order by ...
drop table hold_tb1但愿可以对你有帮助。