mysql--id主键列乱了以后,从新排序

1.问题详述 当咱们使用自增变量的时候,删除其中一条数据,其序列不会减少,而是会继续增加,不符合咱们的要求,为此提出解决办法。web 2.方法 核心思想是删除序列再从新排序,方法以下数据库 alter table category drop cid; alter table category add cid int(3) not null first; alter table category m
相关文章
相关标签/搜索