0

How do I add the Auto_Increment property to the first column in my table ? This is what I tried but it does not work:


"ALTER TABLE `User_ReputationLog` MODIFY `EntryID` int(11) AUTO_INCREMENT;"

rolling_codes
  • 15,174
  • 22
  • 76
  • 112

1 Answers1

1

Try this:

ALTER TABLE `User_ReputationLog` MODIFY COLUMN `EntryID` INTEGER NOT NULL AUTO_INCREMENT;
realshadow
  • 2,599
  • 1
  • 20
  • 38