rs记录集为什么为空?
<%subjectname=request("subjectname")
sql="select * from exam_subject where subjectname='"&subjectname&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
response.write(sql)//输出结果select * from exam_subject where subjectname='aa'
if rs.eof and rs.bof then
response.write(sql)//输出结果select * from exam_subject where subjectname=''
response.end()
end if
%>
这是什么原因?
[ 本帖最后由 xiang_123 于 2010-6-2 19:12 编辑 ]