当前位置: 代码迷 >> Sql Server >> 怎么写这条sql语句
  详细解决方案

怎么写这条sql语句

热度:9   发布时间:2016-04-27 20:26:01.0
如何写这条sql语句?
如何查询出从第10到第15条的数据库纪录,谢谢!!1

------解决方案--------------------
--字段不重复
select top 5 * from 表
where 字段 not in (select top 10 字段 from 表)
------解决方案--------------------
有主键么?是2000还使2005?
------解决方案--------------------
select ideytity(1,1) as id ,tab.* into #tab from tab

select * from #tab where [id] between 10 and 15 end

drop #tab
  相关解决方案