mysql数据库的ID在删除中间一条后,后边的ID可以自动连续

uuid=a 数据库的id字段

system_option 表明

delete from system_option where uuid = a

update system_option set uuid = uuid-1 where uuid > a

猜你喜欢

转载自blog.csdn.net/shixiansen6535/article/details/80660916