关于字符的比较问题
cpzhg 2007-04-25 05:11:57 表名:test
id aaa
1 abc
2 def
3 xyz
<%
set rs=server.createobject("adodb.recordset")
sql="select id,aaa from test"
rs.open sql,conn,1,1
i=1
do while not rs.eof
rs.movenext
i=i+1
loop
aaa=rs("aaa")
bbb="xyz"
if aaa<>bbb then
response.Write "No"
else
response.write "Yes"
end if
%>
输出结束应该是Yes,但为什么老是出错