sybase 自动生成的 id 问题
我有一个表,其中 PK 列 Id 类型为 bigint,并且自动按 1、2、3 的递增顺序填充...依此类推 我注意到有时突然生成的 id 具有非常大的价值。例如,ID 类似于 1,2,3,4,5,500000000000001,500000000000002 在 5...ids 6 , 7 根本没有被使用之后有一个巨大的跳跃,
我确实在这个表上执行了删除操作,但我绝对确信之前没有使用过丢失的 ids。
为什么会发生这种情况以及如何解决这个问题?
非常感谢您对此的关注。
我的环境: sybase ase 15.0.3,Linux
I have a table in which the PK column Id of type bigint and it is populated automatically increasing order of 1,2,3...so on
i notice that some times all of a sudden the ids that are generated are having very big value . for example the ids are like 1,2,3,4,5,500000000000001,500000000000002
there is a huge jump after 5...ids 6 , 7 were not used at all
i do perform delete operations on this table but i am absolutely sure that missing ids were not used before.
why does this occur and how can i fix this?
many thanks for looking in to this.
my env:
sybase ase 15.0.3 , linux
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当系统在非正常关闭后重新启动时,Sybase 会出现此情况。请在此处查看完整说明以及如何处理。
You get this with Sybase when the system is restarted after an improper shutdown. See full description, and what to do about it, here.