mysql查询不连续id 发表于: 2019-08-21 2021-04-13 分类: SRE 标签: https, MySQL, post, s3, sql select id from (select id from testtable order by id asc) t where not exists (select 1 from testtable where id=t.id-1) mysql的in和exists in适合于外表大而内表小的情况,exists适合于外表小而内表大的情况。 文章导航 前一页 上一篇: nginx部分location开启双向认证后一页 下一篇: Kibana Request elasticsearch Timeout after 30000ms sre 318RSS订阅