Home >Database >Mysql Tutorial >How to customize mysql primary key id

How to customize mysql primary key id

醉折花枝作酒筹
醉折花枝作酒筹forward
2021-05-12 09:14:522701browse

This article will introduce to you how to customize the mysql primary key id. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to everyone.

How to customize mysql primary key id

Execute the following sql statement

alter table user(表名) AUTO_INCREMENT=800008(想要主键id从哪开始);

Related recommendations: "mysql tutorial"

The above is the detailed content of How to customize mysql primary key id. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete