请问:如何在下面的SQL语句查询的结果中显示有顺序的序列号。
select * from abc where sex=f
select IDENTITY(int, 1,1) AS ID,* into #temp from 表
select * from #temp
drop table #temp
select IDENTITY(int, 1,1) ID,* into #temp from 表
----------------------------^^^这不是有个*吗?
select * from #temp
drop table #temp
pengdali(大力) 的方法最简单直接了。