I use phpmyadmin to manually change the id (auto_increment) of some row data, therefore when I run my program to create a new row data, it returns me an error of “duplicated entry id and thus could not create the row”.
This problem seems classical but I don’t know the right keywords or phrases to look it up on google. Thank you.
I use phpmyadmin to manually change the id (auto_increment) of some row data, therefore
Share
Try
Where X is some number higher than the highest ID.
I haven’t tested this, but it may work:
(It may fail due to selecting from the same table that is being altered)