create table ##tmp ....
go
insert  into ##tmp select top 10 * from student

解决方案 »

  1.   

    select top 10 * into # from student ....
      

  2.   

    select ... into # 也可
      

  3.   

    select top 10 * into # from 表名 ....
      

  4.   

    如果临时表是存在的,而不是临时创建的
    insert into 临时表 select top 10 from 表
    如果临时表不存在,用完了就删除
    select top 10 * into 临时表 from 表
      

  5.   

    select top 10 *  from 表 as 临时表