Primary Key Sorting

后端 未结 7 618
醉话见心
醉话见心 2020-12-16 03:48

Is a table intrinsically sorted by it\'s primary key? If I have a table with the primary key on a BigInt identity column can I trust that queries will always return the dat

相关标签:
7条回答
  • 2020-12-16 04:33

    Almost everytime it will sort by the tables Identity. It does sort by the clustered index as and may not always be sorted by the identity, but I've never seen it not sorted by the identity id when selecting *. What's the reason behind not specifying an order by? I don't see why it causes a difference in performance.

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