|
<Arco>
There is one caveat I don't like about them: when a transaction is rolled
back before completion, you'll lose the number that was used for the
identity in that transaction.
</Arco>
Auto increment implementation is not under transaction controll of your
program. To solve this, you would need your own implementation (as a
trigger or SQL function). Including the generated numbers in the inserting
transaction has the drawback that insert operations are serialized
limitting scalability.
D*B
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.