insert into 表2(a1,b1)
select A,B from 表1

解决方案 »

  1.   

    insert into 目的表(目的字段....)
    select 目的字段.... from 源表 where 条件
      

  2.   

    use  datebase
    gocreate   table   table1 ( id  int  primary  key ,sname char(10),gongzi  char(10))
    insert   table1  select   'snnsn','sd'
    union    all   select  'sdf','sdfs'
    create   table  table2  ( id  int  primary  key , scae  char(10),niao  char (10))
    insert  table2  select   'sds','sdssds'
    union   all   select   'sadfdfd','sdfdsgfdg'insert  into  table1  ( sname,gongzi)
    select   scae,niao  from  table2
      

  3.   

    insert into table2(?,?)
    select ?,? from  table1