请问各位大虾:sql语句中如何查询两个表组成新表?
小弟在此谢过~

解决方案 »

  1.   

    SELECT ... INTO NEWTAB FROM OLDTAB1 JOIN OLDTAB2 ON ... WHERE ...
      

  2.   

    select * into newtable from a ,b
      

  3.   

    生成视图
    如:
    create view roy
    as
    select A.a,A.b,B.a,B.b from A,B
    where A.a=B.b
    就可以了
    select * from roy就可以得到结果
      

  4.   

    select col1,col2 from tablename1
    union all
    select col1,col2 from tablename2
      

  5.   

    select ... into t3 from t1,t2 where ...........