select min(ap) answer from
(
(
select A+1 ap from (
select A from
(select A from T) T1
union
(select A-A A from T))T2
)
except
(select A from T)
) T3
被要求不能用编程,只能用一个SQL语句,然后不能limit,对于10000左右的数据量还有1s的时间限制 = =