ChrisBattersby
Technical User
I have setup a table with an autoincrement field solely to supply an application with consecutive numbers for new accounts. The application calls a GetNewAccountNo function, which basically deletes all records from the table then inserts a new record thus supplying the latest incremented number.
This has been working flawlessly for 6 months, but suddenly the autoincrement reset to 0 and started again from there. Is there anything wrong with my approach? I am new to MySQL, and work for a small company where nobody else has access to the database, or the nous to deliberately sabotage the data.
The platform I am working on is MySQL version 5.0.45-community-nt, InnoDB tables, XP pro, Delphi 5, CoreLab MyDac data access components.
This has been working flawlessly for 6 months, but suddenly the autoincrement reset to 0 and started again from there. Is there anything wrong with my approach? I am new to MySQL, and work for a small company where nobody else has access to the database, or the nous to deliberately sabotage the data.
The platform I am working on is MySQL version 5.0.45-community-nt, InnoDB tables, XP pro, Delphi 5, CoreLab MyDac data access components.