select id from test a where not exists
(
select 1 from test where id=a.id+1
)
order by id
缺点,不从1开始计算。
时间: 2024-09-28 17:28:56
select id from test a where not exists
(
select 1 from test where id=a.id+1
)
order by id
缺点,不从1开始计算。