SQL Server自动标识字段的最大大小 [英] Max Size of SQL Server Auto-Identity Field
本文介绍了SQL Server自动标识字段的最大大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
SQL Server身份字段(int)的最大大小是多少?
What is the max size of SQL Server identity field (int)?
我每天一次要在几个表中删除并插入一些记录,我很好奇这会对自动标识字段产生什么影响.
I am deleting and inserting hundereds of records at a time a few times a day in a few tables and I'm curious what effect this will have regarding the auto-identity field.
我可以每晚左右运行一份工作,并在需要时截断这些数据.
I can run a job every night or so and truncate this data, if needed.
感谢您的想法.
谢谢.
推荐答案
一个INT最多可以带您2,147,483,647.
An INT will take you up to 2,147,483,647.
BIGINT可以使您获得9,223,372,036,854,775,807.
A BIGINT will get you 9,223,372,036,854,775,807.
这篇关于SQL Server自动标识字段的最大大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文