select id from (select id from rt_issue order by id asc) t where not exists (select 1 from rt_issue where id=t.id-1)
Mysql 查询不连续ID
最新推荐文章于 2025-07-26 13:51:09 发布
本文介绍了一种特殊的SQL查询方法,通过使用子查询和NOT EXISTS条件来实现跳过某个ID前的所有记录,达到特定的数据筛选效果。
1215

被折叠的 条评论
为什么被折叠?



