随机数如何搞都可以的
传top
delare @Num int
exec('select top '+@num+' * from table')
就可以了