Select identity(int,1,1) id,* into #tem from table1
select * from #tem where id=10--取第10行
drop table #tem
select * from #tem where id=10--取第10行
drop table #tem
解决方案 »
- SQL查询语句,困扰我大半天了,求帮助
- Dbgrid显示密码内容怎么办?
- 查询重复数据
- 一个关于Select语句主从表查询的疑惑
- 关于SQL-SERVER的存储过程
- 如何修改vs2008自带的sql2005身份验证用sql身份验证
- 请问这两种Sql执行方式哪种会更快
- 有方法对sql server数据库做压力测试吗?如果有,请大侠告知,谢谢!~
- 这种数据库应怎样设计
- 请问如何用触发器给客户端甚至是服务器端一个提示,再者我想完全可以把触发器要做的事在程序中(c/s中的c端),什么时候必须用到触发器
- 多字段相加,合并成一个字段
- foxpro 和 SQL Server 的连接, 解决另开帖, 共给1000分
from 表
where id not in (select top 9 id from 表)
(select top 1 id from
(select top 10 id from t order by id) a order by id desc
)