有一百条记录,只想显示第二十条至第三十条,有没方法呀? select top 10 * from (select top 30 * from table1 order by id) as xorder by id desc哈,哈哈,哈哈哈...... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 查询N-M条记录。select IDENTITY(int,1,1) as iid,* into #temptable from yourtableselect top M-N * from #temptable where iid>=NOR:select top M-N * from yourTable where id not in(select top N-1 id from table)ID为表具有唯一值的任何字段 数据库安全应用 使用MySQL的23个注意事项 sql2008 如何在不同数据库中导入表? 重装SQL2008失败 求救有那个好人帮帮我,两个不同表的问题,很急 简单的SQL组合查询搞定马上给分! 关于 sqlserver 事物 嵌套的问题 如何查询一个字段的值为空即null 请教此View的写法: 如何让sql server的触发器运行后,用户不能再使用该数据库,而且也不再能连接上? 做个调查,你们用BCB都做些什么,现在除了数据库还有其他的吗? 问一个简单问题!---------但也不是简单的问题 如何把sql的系统错误替换成自定义错误
查询N-M条记录。
select IDENTITY(int,1,1) as iid,* into #temptable from yourtable
select top M-N * from #temptable where iid>=NOR:select top M-N * from yourTable where id not in(select top N-1 id from table)
ID为表具有唯一值的任何字段