create table table1 (id bigint unsigned auto_increment primary key,col int);
insert into table1 values (18446744073709551613,1);
insert into table1 values (null,1);
insert into table1 values (null,1);
[ERROR in query 4] Failed to read auto-increment value from storage engine
select 18446744073709551614/(60*60*24*365*1000000);
1年31536000秒,每秒产生一百万条,结果为584942年(58万年)。
MySQL自增ID是否会用完
发表回复