查询自增ID断点的地方

方法一

SELECT id+1 AS ID 
FROM table
WHERE
id+1 not in (SELECT id FROM table);

 

posted @ 2020-04-02 18:47  绿静風  阅读(185)  评论(0编辑  收藏  举报