自增锁ID复用问题
2024-10-22 08:36:40
mysql> select * from pp;
+----+------+
| id | name |
+----+------+
| 1 | xx |
| 2 | xx |
| 3 | xx |
| 4 | xx |
| 5 | xx |
| 6 | xx |
| 7 | xx |
| 8 | xx |
| 9 | xx |
| 10 | xx |
| 13 | xx |
| 14 | xx |
| 15 | xx |
| 16 | xx |
| 17 | xx |
| 18 | xx |
| 19 | xx |
| 20 | xx |
| 21 | xx |
| 22 | xx |
| 23 | xx |
| 24 | xx |
+----+------+
22 rows in set (0.00 sec) mysql> delete from pp where id=24;
Query OK, 1 row affected (0.11 sec) mysql> show create table pp; CREATE TABLE `pp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=gbk
重起MYSQL 服务器
mysql> show create table pp; | pp | CREATE TABLE `pp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=gbk |
最新文章
- <;十六>;JDBC_使用 DBUtils 编写通用的DAO
- iOS开发 适配iOS10以及Xcode8
- 学霸网站-Beta版本发布说明
- .NET破解之图片下载器
- 后缀数组---Musical Theme
- java--接口和抽象类
- VI查找与替换
- linux网络故障解决方法
- DNF技能贴图的研究
- 《C#入门典》
- classes system in sencha touch
- aix knowlgdgecenter
- Javascript实例技巧精选(8)—计算当月剩余天数
- 怎么用secureCRT连接Linux
- 【.Net Core】处理静态文件
- PDM:Training Models of Shape from Sets of Examples
- Nginx与ftp服务器
- docker镜像制作 centos6 nginx1.15.6 with NGINX_UPSYNC_MODULE
- LINUX部署SVN服务器
- 平面最近点对模板[luogu P1429]