Change the step auto_increment fields increment by

后端 未结 4 1376
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 20:04

How do I change the amount auto_increment fields in MySQL increment by from the default (1) to n?

4条回答
  •  庸人自扰
    2020-12-09 21:07

    You can also use ALTER SEQUENCE sequence_name INCREMENT BY N where N is the new incremnent value.

提交回复
热议问题