28,391
社区成员
发帖
与我相关
我的任务
分享
rs.open "select * from table",conn,1,1
m=0
c=0
do while not rs.eof
if Cint(rs("value"))=1 then
c=c+1
if c>m then
m=c
end if
else
c=0
end if
loop
response.write "连续为1的记录数为"&m