ALTER TABLE table AUTO_INCREMENT = $x

痞子三分冷 提交于 2019-12-13 02:41:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!