RT,例如我在A表和B表中各查询到一列数据   我需在C表中进行重新整合   该如何操作?

解决方案 »

  1.   

    insert into c(字段) select 字段 from a where..
      

  2.   

    insert into C(colA,colB)
    select a.col1,b.col2
    from A,B
    where a.id=b.id  --这里的id是指A和B的关联字段
      

  3.   

    楼主是什么意思,只是简单的整合的话整合到两列
    insert into c(col1,col2)
    select a.col1,b.col2 from a,b整合到一列
    insert into c(col)
    select col1 from a
    union all
    select col2 from b
      

  4.   

    Insert into C表(列名)
    Select 列名 From A表
    Union All
    Select 列名 From B表