1 set @num = 0; 2 update projects set id = @num := @num +1; 3 alter table projects auto_increment = 1; 4 set @num = 0; 5 update nodes set id = @num := @num +1; 6 alter table nodes auto_increment = 1;
已发布
分类
作者:
刘满
标签
您的电子邮箱地址不会被公开。 必填项已用*标注
评论 *
显示名称 *
电子邮箱地址 *
网站地址
Δ
此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。
发表回复