select MIN(t.fint)FROM (select fint+1 fint from aaa) tWHERE t.fint not in(select fint from aaa) 转载于:https://www.cnblogs.com/Sabre/archive/2008/04/25/1171112.html