表名TABLENUM
ID--A1--A2 类型为字符型
1-- 1-- 0
2-- 0-- 0
3-- 1-- 0
4-- 0-- 0
5-- 1-- 0
<%
dim sql
sql="select * from numsr where a1='0'"
rs.open sql,conn,1,1
if rs.eof or rs.bof then
response.write "已经有出过1个0了!"
rs.close
else
%>
a1都是0
<%
end if
%>
----------------------------
<%
dim sql2,rs2
sql2="select * from numsr where a2='0'"
rs2.open sql2,conn,1,1
if rs2.eof or rs2.bof then
response.write "已经有出过1个0了!"
rs2.close
else
%>
a2都是0
<%
end if
%>