且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Oracle序列以2而不是1开头

更新时间:2023-11-26 18:46:46

这是记录在《 11.2 SQL语言参考》 中,

如果您尝试将序列值插入使用延迟段创建的表中,则该序列返回的第一个值将被跳过.

If you attempt to insert a sequence value into a table that uses deferred segment creation, the first value that the sequence returns will be skipped.

请参阅Jeffrey Kemp的答案中的链接,以获得My Oracle Support(Metalink)说明和解决方法.

See the link in Jeffrey Kemp's answer for a My Oracle Support (Metalink) note and a workaround.