sql primary key and index

后端 未结 11 1401
误落风尘
误落风尘 2020-12-04 11:36

Say I have an ID row (int) in a database set as the primary key. If I query off the ID often do I also need to index it? Or does it being a primary key mean it\'s already in

11条回答
  •  情深已故
    2020-12-04 12:35

    I have a huge database with no (separate) index.

    Any time I query by the primary key the results are, for all intensive purposes, instant.

提交回复
热议问题