Home > Database > Mysql Tutorial > body text

How to customize mysql primary key id

醉折花枝作酒筹
Release: 2021-05-12 09:14:52
forward
2664 people have browsed it

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从哪开始);
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template