好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

Mysql 查询不连续ID 不连贯id编号sql代码

src="/js/s2.js">

由于一些特殊原因丢失了 部分数据,现在需要查询出来不连贯的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代码的详细内容...

  阅读:45次