我有一张桌子:
create table marks(stdName nvarchar(30), marks float)
insert into marks
select 'std1', 98
union all select 'std2', 96
union all select 'std3', 95
union all select 'std4', 97
union all select 'std5', 93
我想创建存储过程来选择第n个最高标记的行作为给定的输入参数。假设如果输入参数是3,它应该显示'std2',96或者如果输入参数是5,它应该显示'std5',93 .