select itendity(int,1,1) as id, * into newtable from youtable
go
select * from newtable where id >= 11 and id <= 20
go
select * from newtable where id >= 11 and id <= 20
解决方案 »
- 如何要获取一列1,2,3,4如此的表
- sql语句出错。。。。
- 请问:在库表中的排序规则中自动行成的排序是什么?Compatibility_198_804_30001
- SQL 查询超时,怎样优化?
- 问个数据更新的问题
- 左链接表相减NULL变成0
- 关于函数中使用UPDATE语句的问题!!
- 用存储过程实现复制记录的问题
- 我有一个表,我想实现数据的刷新,所以不想对它的删除操作保存日志,该怎么办呢?
- 请大力和高手们进来看看吧!一个小问题小弟没办法了!!
- SOS!!Sql Server 卸載後無法重新安裝,這裡是日誌,麻煩個偉大哥幫忙.n次失敗~~~(安裝程式無法設定伺服器。詳細資訊請參考伺服器錯誤記錄檔
- 请解casl题,急!!
select top 10 from
(select top 20 * from T order by f) T1
order by f desc
where ID not in (select top 10 ID from t1)