select customerid from 表1
union
select customerid from 表2