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 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" 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. 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. 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 Link to comment https://forums.phpfreaks.com/topic/209760-mysql-auto-increment-values/#findComment-1095114 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.