insert 另一个表 (id) select top 10 [id] from [table]

解决方案 »

  1.   

    insert into 表名1(字段名,字段名)
    select top 10 (字段名1,字段名1) 
    from  表名2
    where .......
      

  2.   

    insert 另一个表 (id,其他数据列) select top 10 [id],@其他数据 from [table]
      

  3.   

    insert [table1] (id) select top 10 [id] from [table2]
      

  4.   

    insert [table1] (id) select top 10 [id] from [table2]