问题
i would to execute this query but it doesn't work and i don't know why :
$query = mysqli_query($connexionUser, "ALTER TABLE creatik AUTO_INCREMENT = '$i'");
i check my vars and there are okay. Auto increment is set on a id column who is primary key if it can help to understand what's wrong.
Thanks to take a look :)
回答1:
AUTO_INCREMENT
expects an integer. It's possible that the quotes are throwing it off, try removing them.
来源:https://stackoverflow.com/questions/12588071/alter-table-table-auto-increment-x