汇总union all:select tel from a
union all
select tel from b
union all
select tel from c
union all
select tel from d

解决方案 »

  1.   

    具有重复的tel:select tel from 
    (select tel from a
    union all
    select tel from b
    union all
    select tel from c
    union all
    select tel from d
    ) a group by tel having count(*)>1
      

  2.   

    用楼上的方法:
    select tel
    from 
        ( select tel from a
          union all
          select tel from b
          union all
          select tel from c
          union all
          select tel from d
        ) a
    group by tel
    having count(*)>1
      

  3.   

    select tel
    from 
        ( select tel from a
          union all
          select tel from b
          union all
          select tel from c
          union all
          select tel from d
        ) a
    group by tel
    having count(*)>1