日期:2014-05-19  浏览次数:20492 次

id问题
两个表
表a,有两列(id,zifu)
--
表b,只有一列(zifu)
表a和表b的zifu列的数据都相同。
--
读取表a的第N条数据可以通过语句
select   zifu   from   a   where   id=N
实现
--
那么读取表b的第N条数据可以通过什么语句实现呢?
--
请教!

------解决方案--------------------
with clustered index,try to do as :
select *,sn=identity(int,1,1) into #t from tablename
select * from #t where sn=N