select id from test a where not exists
(
select 1 from test where id=a.id+1
)
order by id
缺点,不从1开始计算。
(
select 1 from test where id=a.id+1
)
order by id
缺点,不从1开始计算。

2023-03-13
0万阅读

2023-03-11
0万阅读

2023-03-10
0万阅读

2023-03-10
0万阅读

2023-03-05
0万阅读

2023-03-04
0万阅读

2023-03-04
0万阅读

2023-03-03
0万阅读

2023-03-02
0万阅读

2023-03-02
0万阅读

2023-03-13
0万阅读

2023-03-11
0万阅读

2023-03-10
0万阅读

2023-03-10
0万阅读

2023-03-05
0万阅读

2023-03-04
0万阅读

2023-03-04
0万阅读

2023-03-03
0万阅读

2023-03-02
0万阅读

2023-03-02
0万阅读