create database "a.gdb" user "sysdba" password "masterkey";
create table table1 (f1 char(5) not null, f2 char(5) not null);
create table table2 (f1 char(5) not null, f2 char(5) not null);
commit;
insert into table1 values ("1","a");
insert into table2 values ("2","b");
select * from table1 union select * from table2;
上面的 select 查询将把两表中的每个记录都联合到一个结果集中.
注意: select * 中能用于两个具有相同表结构的表。