mysql中id自增语句

 方法一:命令行

create table 表名 (id int primary key auto_increment);

方法二: navicat

 

表名称上右键选择设计表,选择你要自增的int类型,在下方有个自动递增的选项勾上,左上角保存就行了 

猜你喜欢

转载自blog.csdn.net/promiseCao/article/details/107371001
今日推荐