今天在看实验室的项目时,碰到的一个问题,。先把sql语句扔出来
// 这条语句在id没有1时,不能得到正确的查询结果。
select min(id+1) from oslist c where not exists (select id from oslist where id = c.id+1);// 这条语句在id没有1今天在看实验室的项目时,碰到的一个问题,。先把sql语句扔出来
// 这条语句在id没有1时,不能得到正确的查询结果。
select min(id+1) from oslist c where not exists (select id from oslist where id = c.id+1);// 这条语句在id没有1