Primary key Ascending vs Descending

后端 未结 2 701
小蘑菇
小蘑菇 2020-12-30 22:52

In Sql Server, I have a table with an Identity primary key. Often I want the latest few new records, so I grab the Top n sorted by descending the primary key. Should I defin

2条回答
  •  感情败类
    2020-12-30 22:56

    It makes absolutely no difference.

    I can't even imagine why it's possible to declare it either way.

提交回复
热议问题