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

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

int类型

有时候我们不需要id自增

 char类型

猜你喜欢

转载自www.cnblogs.com/ooo888ooo/p/13399768.html