日期:2014-05-18 浏览次数:20468 次
sql = "Select count(daid) from sb WHERE daid='"&daid&"'" set rs=conn.execute(sql) if rs(0) <> 0 then daid=daid+1 end if
SELECT TOP 1 A.daid + 1 ASN Nextdaid FROM TAB A WHERE NOT EXISTS ( SELECT 1 FROM TAB WHERE daid = A.daid + 1 ) ORDER BY ABS(A.daid + 1 - 1010 )