Home > Database > Mysql Tutorial > 修改mysql的主键默认值

修改mysql的主键默认值

WBOY
Release: 2016-06-07 14:57:40
Original
1955 people have browsed it

当你测试的数据被删除时,主键id就会有间隔,可以修改主键的默认值消除间隔 无 alter TABLE syxg_user AUTO_INCREMENT=21

当你测试的数据被删除时,主键id就会有间隔,可以修改主键的默认值消除间隔
alter TABLE syxg_user AUTO_INCREMENT=21
Copy after login
source:php.cn
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