select identity(int,1,1) items,* into # from price
select * from #go
dorp table #

解决方案 »

  1.   

    select identity(int,1,1) items, * into #t from price
    select * from price
      

  2.   

    select identity(int,1,1) as items,* into #t from yourtable
    select * from #t
    drop #t
      

  3.   

    select identity(int,1,1) items, * into #t from price
    select * from #t
      

  4.   

    select identity(int,1,1) items, * into #temp from price
    select * from #temp
      

  5.   

    select IDENTITY(int, 1,1) items, product, price, number into #temp from price
    select * from #temp order by items
    drop table #temp