SQL Row_Number() function in Where Clause without ORDER BY?

前端 未结 5 1126
北海茫月
北海茫月 2020-12-08 06:45

I found a bunch of questions on this topic with nice solutions but none of them actually deal with what to do if the data is not to be ordered in one specific way. For insta

5条回答
  •  春和景丽
    2020-12-08 07:23

    There is no such thing as ORIGINAL ORDER. SQL server cannot guarantee order of rows if you don't specify ORDER BY. You may get lucky and get results in particular order, but it may change any time.

提交回复
热议问题