比如
有一数据库:
1
2
4
5
7
8
9
11
要如何才能选出4 7 11 ?
答案:
select * from 表 where 列 not in (select 列+1 from 表) and 列>(select min(列) from 表)
比如
有一数据库:
1
2
4
5
7
8
9
11
要如何才能选出4 7 11 ?
答案:
select * from 表 where 列 not in (select 列+1 from 表) and 列>(select min(列) from 表)