insert into b(...)
select ...,c.类别ID,... from a,类别表 c where a.类别=c.类别名称

解决方案 »

  1.   

    1楼的写成a表导入到b表
    楼主说的是b表导入到a表看了半天才反映过来  呵呵
    insert into a(xx,xx,xx,类别名称)
    select b.xx,b.xx,b.xx,c.类别名称 from b,c where b.类别id=c.类别id
      

  2.   

    insert into b(...) select ...
      

  3.   

    inser into tb3(col....)
    select col...
    from tb1 a,tb2 b
    where a.id=b.id
      

  4.   

    insert into a(ColumnName1,ColumnName2,Class)
    select ColumnName1,ColumnName2,Class from b