Is a Primary Key necessary in SQL Server?

前端 未结 10 1168
旧时难觅i
旧时难觅i 2020-12-05 03:58

This may be a pretty naive and stupid question, but I\'m going to ask it anyway

I have a table with several fields, none of which are unique, and a primary key, whic

10条回答
  •  甜味超标
    2020-12-05 04:33

    If you are accessing them via non-key fields the performance probably will not change. However it might be nice to keep the PK for future enhancements or interfaces to these tables. Does your application only use this one table?

提交回复
热议问题