如何在SQL Server中选择前几条记录
编号:QA000623
建立日期: 1999年3月11日 最后修改日期:2002年3月7日
所属类别:
陈海军:
我直接在MS SQL6.5中运行查询Select top 10 from table order by field1,可不能得到我要的结果。
回答:
set rowcount 10
go
select * from table order by filed1
go
set rowcount 0
go
可可的意见:
在SQL SERVER 7.0中是:Select top 10 * from table order by field1
此问题由孙斌回答。
| |
|
|
| |
|
|