select * from A
union
select * from B
.....

解决方案 »

  1.   

    select * into newtable
    from
    (
    select * from a
    union
    select * from b
    union
    select * from c
    ...
    ) a
      

  2.   

    SELECT * INTO newTable
    FROM A
    UNION ALL SELECT * FROM B
    UNION ALL SELECT * FROM C
    UNION ALL SELECT * FROM D
      

  3.   

    select * into t from t1
    union all
    select * from t2
    union all
    select * from t3union和union all的区别:union可以排重
      

  4.   

    select * into t from a
    union all
    select * from b
    union all
    select * from c
    union all
    select * from d
    union和union all的区别:union可以排重, union all 只选相同
      

  5.   

    --union:      多条相同的记录只选择一条;
    --union all:  所有记录,即使有重复项也罗列出来。
      

  6.   

    ~~O~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          O                 /' ) 
      o                   /'   (                          ,
         o            __/'     )                        .' `;
       o      _.-~~~~'          ``---..__             .'   ;
         _.--'  b)                       ``--...____.'   .'
      。 (     _.      )).      `-._                     <
         `\|\|\|\|)-.....___.-     `-.         __...--'-.'.
     hss   `---......____...---`.___.'----... .'         `.;
                                            `-`           `
    潜水久了,该吹个泡泡了!
    ===================================================================
    年年有余