Why can't I query OFFSET/ FETCH query on my SQL Server?

前端 未结 2 709
刺人心
刺人心 2021-02-19 07:06

I want to run this query on my SQL Server as follows:

Microsoft SQL Server Management Studio 10.50.1600.1

But it can\'t recognize the OFFSET and so shows ERROR?<

相关标签:
2条回答
  • 2021-02-19 08:01

    Please be aware you will get an error even in 2014 if you don't have an order by. The offset must follow an order by statement.

    0 讨论(0)
  • 2021-02-19 08:02

    OFFSET FETCH is a new feature added to Sql Server 2012 and does not exist in Sql Server 2008.

    0 讨论(0)
提交回复
热议问题