Forum Moderators: open
SQL query:
ALTER TABLE `tablename` CHANGE `id` `id` INT( 6 ) NOT NULL AUTO_INCREMENT
MySQL said: Documentation
#1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key
Despite searches on the net and the phpmyadmin docs i cant find a solution that suits my needs...
What do i need to do?
:)
However, BEFORE you do all this, you'd better make sure that your existing code is not going to die when you remove the first AUTO_INCREMENT. Also, that it doesn't die when you add AUTO_INCREMENT to the other field.