mattclements Posted August 4, 2010 Share Posted August 4, 2010 Hello all, I have built a script that generates automated PDF invoices. The first batch's ID's were: 2044-2106 as I forgot to reset the auto increment value after testing - I then reset this and new invoices are now 1-80. When the invoices reach 2044 will they just miss 2044-2106 as I want, or will they overwrite/throw an error? Regards, Matt Quote Link to comment https://forums.phpfreaks.com/topic/209760-mysql-auto-increment-values/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 4, 2010 Share Posted August 4, 2010 That one -> "throw an error" Quote Link to comment https://forums.phpfreaks.com/topic/209760-mysql-auto-increment-values/#findComment-1095032 Share on other sites More sharing options...
mattclements Posted August 4, 2010 Author Share Posted August 4, 2010 Really - I thought a primary key is a constraint and therefore would skip the values. Quote Link to comment https://forums.phpfreaks.com/topic/209760-mysql-auto-increment-values/#findComment-1095092 Share on other sites More sharing options...
PFMaBiSmAd Posted August 4, 2010 Share Posted August 4, 2010 You could always try it and see what it does do. Quote Link to comment https://forums.phpfreaks.com/topic/209760-mysql-auto-increment-values/#findComment-1095094 Share on other sites More sharing options...
mattclements Posted August 4, 2010 Author Share Posted August 4, 2010 Just have - it wont let me change the auto increment values - so I have had to move the 2000 batch into a seperate table. Thanks for your advise. Regards, Matt Quote Link to comment https://forums.phpfreaks.com/topic/209760-mysql-auto-increment-values/#findComment-1095114 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.