•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 401,446 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,924 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 2676 | Replies: 4
![]() |
An update on this. I have just found out that TRUNCATE `table`; works on MyISAM databases for MySQL to reset the autoincrement value, but not neccessarily other types. It does NOT work on InnoDB types.... If you want to change the table type in MySQL you can do this:
Then it will be easier to modify or reset the autoincrement value.
ALTER TABLE `database_name`.`table_name` TYPE = MYISAM;
Then it will be easier to modify or reset the autoincrement value.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Random unique primary key - is this possible? (MySQL)
- generate unique primary key (MySQL)
- Primary Key Issue (Visual Basic 4 / 5 / 6)
Other Threads in the PHP Forum
- Previous Thread: Arrays in PHP
- Next Thread: Question about ASp or Php


Linear Mode