select top (@index) from table
//这种写法在2005版本里是没有问题的但在2000版本里就会报语法错误
//2000要写成
exec('select top'+@index+' * from table')

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-12-23
  • 2021-06-29
  • 2021-09-12
猜你喜欢
  • 2021-09-14
  • 2021-06-16
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案