Mysql identity column increment

Identity column

  • Since the growth column

  • Meaning: a value can not manually inserted, the system provides a default sequence value

  • Set identity column when creating a table

    • CREATE TABLE 表名(
      	字段名 类型 key  AUTO_INCREMENT
      );
      
  • # 设置步长
    SET auto_increment_increment=步长;
    
  • Requirements and key match

Published 57 original articles · won praise 40 · views 20000 +

Guess you like

Origin blog.csdn.net/qq_25884515/article/details/103947204