select * into #tmp from table
呵呵

解决方案 »

  1.   

    but 在 SELECT INTO 语句 中不允许使用 COMPUTE 子句
      

  2.   

    select * into 临时表from table where ...
      

  3.   

    select * into ##tmp from tablename
      

  4.   

    1: 局部臨時表#temp
       select * into #temp from Utable where ......2: 全局臨時表##temp
       select * into ##temp from Utable where ......3: 表變量   @temp (used in SQL 2000)
       declare @temp table (a int,...........)
       insert into @temp
       select * from Utable where .......
      

  5.   

    select * into #aaa from 表1
      

  6.   

    select col1,col2..... into #tab from tab
      

  7.   

    COMPUTE 生成多个结果集.可以用GROUP BY。
    select coll,col2.... into #temp
    from tab
    group by ...