在添加或变更表结构时,把id字段设置为整型,下面的选项就会出现“自动递增”auto increment的选择框,勾选中就可以了。

int类型

MySQL数据库——Navicat如何设置主键自增长

 

 

有时候我们不需要id自增

 char类型

MySQL数据库——Navicat如何设置主键自增长

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2022-12-23
  • 2022-02-15
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
猜你喜欢
  • 2021-11-11
  • 2021-12-17
  • 2023-03-19
  • 2021-12-05
  • 2022-12-23
  • 2022-02-07
相关资源
相似解决方案