有两个表A表和B表
怎么把A表中的一行放到B表中

解决方案 »

  1.   

    insert into b select cola ,colb ,colc from a where cola=***
      

  2.   

    insert into b (col1,col2,...,coln)
    select col1,col2,...,coln from a
    where ...;commit;
    注意对应列数据类型应该一样。
      

  3.   

    insert into b (id,code,name,...) 
    select id,code,name...from a 
    where id=?
      

  4.   

    insert into b (col1,col2,...,coln)
    select col1,col2,...,coln from a注意数据类型 
      

  5.   

    可以exp  导出来,在imp 导入进去
      

  6.   

    insert into b (id,code,name,...)  
    select id,code,name...from a  
    where id=?
      

  7.   


    merge into B using A on(A.col1=B.col1) 
    when not matched then insert(B.col1,B.col2) values(A.col1,A.col2)