insert into table1(field1) select field2 from table2 where ...

解决方案 »

  1.   

    insert into tablename(colname) select name from sysobjects where xtype='U' and name='anothertablename'
      

  2.   

    insert into one_table(colname)
    from select name from syscolumns 
    where id=object_id(another_table)
      

  3.   

    insert into one_table(colname)
    select name from syscolumns 
    where id=object_id(another_table)