select distinct match from (
select * from 表1 union all select * from 表2
)
select count(1) from (
select distinct match from (
select * from 表1 union all select * from 表2
)
select * from 表1 union all select * from 表2
)
select match from(select match from 表1 union select match from 表2)
union all
select count(1) as match from (select match from 表1 union select match from 表2)
union联合两张表会消除重复数据。