SqlServer中使用参数传递前N条条件 2015/01/25 11808 declare @topN int; select @topN = 10; select top (@topN) * from TableName