select id from test a where not exists
(
select 1 from test where id=a.id+1
)
order by id
缺点,不从1开始计算。
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/236535.html
select id from test a where not exists
(
select 1 from test where id=a.id+1
)
order by id
缺点,不从1开始计算。
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/236535.html