判断字段为空的问题
如何用asp取出数据库中的记录,然后判断其中的一个字段是否为空,
sql="select * from notes where notesid="¬esid
set rs=server.createobject("adodb.recordset")
rs.open sql,objconn,1,1
if rs("notesreplay") = "" then
response.write "1"
else
response.write "2"
end if
rs.close
set rs=nothing
我这样做,为什么输出都是2呢,其中它rs("notesreplay") 里面就没有数据呀