(在SQL sql server中,Identity Column值突然跳转到1000)。 [英] (Identity Column value suddenly jump to 1000 in ms sql server).

查看:82
本文介绍了(在SQL sql server中,Identity Column值突然跳转到1000)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:-(身份列值突然在ms sql server中跳转到1000)。



im使用Sql Server 2008 R2

列是标识列(1,1)和主要



但是这个问题创建了在线服务器(例如: - 1,2,3,4 ....... 767,1767,1768 ...)



请帮助解决这个问题的人.........

Question:-(Identity Column value suddenly jump to 1000 in ms sql server).

i m using Sql Server 2008 R2
column is identity column(1,1) and primary

but this problem create online server(Example:- 1,2,3,4.......767,1767,1768...)

please help Solve this Problem guys.........

推荐答案

身份每次插入任何内容时函数都会递增,即使您在事务中回滚或删除尾部行(如果删除id为1000的最后一行,则插入一行,您将获得1001的id)。
The Identity function will increment every time anything is inserted even if you rollback within a transaction or delete the tailing rows (if you delete the last row with id of 1000 then insert a row you will get the id of 1001).


这篇关于(在SQL sql server中,Identity Column值突然跳转到1000)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆