Negative Primary Keys

前端 未结 9 2080
青春惊慌失措
青春惊慌失措 2020-12-10 11:25

Are there any repercussions using Negative Primary Keys for tables (Identity Increment -1, Identity Seed -1 in SQL Server 2005)?

The reason for this is we\'re creati

9条回答
  •  孤城傲影
    2020-12-10 11:32

    You'll want to review legacy code and look for where developers have sorted on primary key as a lazy/sloppy way of sorting by date (because identity pk's usually are strongly or perfectly correlated to time).

提交回复
热议问题