asp判断数据为空

来源:百度知道 编辑:UC知道 时间:2024/06/02 04:30:37
我做了一个留言板,想在前台判断回复如果为空的话,就该留言就不会显示在前台,数据库字段为“reply”,请问怎么写?

Sql="Select * From biao Where Reply<>''"
Rs.Open Sql,Conn,1,1
IF Rs.Recordocunt>0 Then
Do While Not Rs.Eof

Response.Write Rs("字段")
Rs.Movenext
Loop
End IF
Rs.Close

if rs("reply")<>"" then
response.write "有回复"
else
response.write " "
end if