由于一些特殊原因丢失了 部分数据,现在需要查询出来不连贯的id也就是被删除的id编号的sql代码
select id from (select id from yizuotu.net order by id asc) t where not exists (select 1 from yizuotu.net where id=t.id-1)
有需要就试试吧
查看更多关于Mysql 查询不连续ID 不连贯id编号sql代码的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did253508