惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Secure Thoughts
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Securelist
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
K
Kaspersky official blog
WordPress大学
WordPress大学
I
Intezer
L
Lohrmann on Cybersecurity
V
Vulnerabilities – Threatpost
C
Check Point Blog
A
About on SuperTechFans
AWS News Blog
AWS News Blog
Latest news
Latest news
宝玉的分享
宝玉的分享
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
C
Cyber Attacks, Cyber Crime and Cyber Security
SecWiki News
SecWiki News
Recorded Future
Recorded Future
Last Week in AI
Last Week in AI
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Register - Security
The Register - Security
A
Arctic Wolf
V2EX - 技术
V2EX - 技术
Hacker News: Ask HN
Hacker News: Ask HN
V
V2EX
Scott Helme
Scott Helme
I
InfoQ
Project Zero
Project Zero
Security Archives - TechRepublic
Security Archives - TechRepublic
Recent Announcements
Recent Announcements
Spread Privacy
Spread Privacy
Attack and Defense Labs
Attack and Defense Labs
大猫的无限游戏
大猫的无限游戏
Webroot Blog
Webroot Blog
N
News and Events Feed by Topic
博客园 - 司徒正美
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
NISL@THU
NISL@THU
L
LangChain Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

博客园 - David

微创急聘实习生1名 有感于最近一个朋友买股票大亏 dts无法识别Excel中的数字列?(续) dts无法识别excel中的数字值? 如何在定义游标的时候使用动态sql语句? Sql2005 Beta3 Reporint Service问题1 -Row的Grouping属性无法取消 微创急聘实习生1名 批量insert数据 获得SqlServer数据库连接信息 sql server多表关联update Asp.ne页面提交时,动态生成的UserControl消失了。 用css filter做颜色渐变的问题 从sql2000导入数据到sql2005的问题 果然是.net写的 为啥Sql 2005 Management Studio 这么慢?? How to run DTS at sqlserver2005 用WebDav调用Exchange发信(2)-使用他人名义 傻×的Yukon Beta3安装程序 Teched初体验(第一天)
从数据表中取出第n条到第m条的记录的方法
David · 2005-12-21 · via 博客园 - David

select top 页大小 *
from table1 
where id>
      (
select max (id) from 
      (
select top ((页码-1)*页大小) id from table1 order by id) as T
       )     
  
order by id

从publish 表中取出第 n 条到第 m 条的记录:

SELECT TOP m-n+1 * 
FROM publish 
WHERE (id NOT IN 
    (
SELECT TOP n-1 id 
     
FROM publish)) 

SELECT TOP 页大小 *
FROM Table1
WHERE not exists
(
select * from (select top (页大小*页数) * from table1 order by id) b where b.id=a.id )
order by id