日期:2014-05-16 浏览次数:20652 次
select min(col) from xxx where col+1 not in (select col from xxx) ------解决方案--------------------SELECT min(a.id) from tt5 a left join tt5 b on 0+a.id=0+b.id-1 where b.id is null