SQL Server Int or BigInt database table Ids

前端 未结 7 1151
醉梦人生
醉梦人生 2020-12-12 18:04

I am writing a new program and it will require a database (SQL Server 2008). Everything I am running now for the system is 64-bit, which brings me to this question. For all

7条回答
  •  感动是毒
    2020-12-12 18:26

    You should judge each table individually as to what datatype would meet the needs for each one. If an INTEGER would meet the needs of a particular table, use that. If a SMALLINT would be sufficient, use that. Use the datatype that will last, without being excessive.

提交回复
热议问题