在MySQL中,我有一个表,我想将auto_increment
值设置5
为 1
。这可能吗,这是什么查询语句?
您不能更改,只能增加
—
Vasilii Suricov
@VasiliiSuricov
—
seyfahni
You can change this option with ALTER TABLE, but in that case the new value must be higher than the highest value which is present in the AUTO_INCREMENT column.
源如果没有比您要设置的auto_increment
ed列更高的值,则也可以减小该值。(mysql documentation)