How to set an AUTO_INCREMENT field with to start with the value 6000 in mysql?

后端 未结 3 1626
清酒与你
清酒与你 2021-02-19 11:11

How to set a field auto increment without auto increment key in mysql or how set a field auto increment with start value 6000 in mysql?

3条回答
  •  面向向阳花
    2021-02-19 11:37

    ALTER TABLE tbl_name AUTO_INCREMENT = 6000
    

    but be aware you should have no PK lager 6000 in this table !

提交回复
热议问题