evergreean43
Technical User
I have a sequence and trigger that automatically increases my primary key on my table after each Oracle 9i record insert.
It works but was wondering why it sometimes skips more than a thousand numbers on some inserts.
For example:
If I insert records right after another (such as id 1 and id 2) it increments to the next number. But sometimes a record might be inserted a week later after example id 2 (such as id 1023) and that is when it jumps sometimes a 1000 in the next number.
Please advise.
It works but was wondering why it sometimes skips more than a thousand numbers on some inserts.
For example:
Code:
id name
1 Jones
2 Barnes
1023 Johnson
2005 Baker
3006 Miller
If I insert records right after another (such as id 1 and id 2) it increments to the next number. But sometimes a record might be inserted a week later after example id 2 (such as id 1023) and that is when it jumps sometimes a 1000 in the next number.
Please advise.