第1个回答 2012-08-03
SELECT x FROM 表a
UNION
SELECT x FROM 表b
第2个回答 2012-08-03
select x from 表a union select x from 表b
第3个回答 2012-08-03
可以试着使用union all,但是要确保a表和b表的输出字段相同
select x from a
union all
select x from b
order by x
希望能帮到你
关于union 和 union all的区别,前者会将读出来相同的数据进行去重,后者虽然不去重,但不会对数据进行排序