sql server 中怎么查询一个表第一条记录? Select TOP 1 * from 表 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 楼上的兄弟说得很对,还可以: select id=identity(int,1,1),* into #tmp from tablename select * from #tmp where id=1 go 回复人: qianmo(广袤) ( ) 信誉:100 2005-04-08 02:05:00 得分: 0 那第N行呢?? select id=identity(int,1,1),* into #tmp from tablename select * from #tmp where id=N go select id=identity(int,1,1),* into #tmp from tablename select * from #tmp where id=N set rowcount 1select * from talblename 哪位把2005的这个结果贴给我看下,谢谢! sqlite性能如何,大家怎么看? 为什么不推荐用 “用户名” 做主键 路过,帮我看一下 mysql 出现2003- cant connect to MYSQL server on localhost 的错误 恳请高手帮一个忙,关于SQL 是问题 ?搞定给分 怎么截出时间的格式为YYYYMMDDHHMISS啊?帮个忙。 超急的问题,大虾们进来看看!或许你以后也能遇到! 求助sql server 表的所有者问题 sqlserver访问被拒绝,已打sp3补丁 请教一个动态聚合查询的问题 text类型字段怎么存储图片?
select * from #tmp where id=1
go
那第N行呢??
select id=identity(int,1,1),* into #tmp from tablename
select * from #tmp where id=N
go
select * from #tmp where id=N
select * from talblename