use master
go
create database aaa
go
create table bb
(
aaaa int
)
go
insert into bb values (1)
insert into bb values (2)
insert into bb values (3)
insert into bb values (4)
insert into bb values (5)
insert into bb values (6)
insert into bb values (7)
select * from bb
declare @ss int
select @ss = 2
select top (@ss) from bb
为什么这个查询在sql2000里面会报错,2005里面则不会,我想在2000里面写该怎么写啊,会的人教下,谢谢!