asp假如数据库表没有记录 那么显示1
来源:百度知道 编辑:UC知道 时间:2024/06/19 19:06:04
假如数据库表没有记录 那么显示1 怎么做
<%
if tt.eof then
reponse.write "1"
%>
当表为空的时候执行完不显示 是怎么个情况??
高手帮改啊
<%
if tt.eof then
reponse.write "1"
%>
当表为空的时候执行完不显示 是怎么个情况??
高手帮改啊
更正楼上的
<%
if (tt.bof and tt.eof) then
response.write "1"
end if
%>
<%
if tt.eof=0 then
reponse.write "1"
%>
<%
if (tt.bof or tt.eof) then
response.write "1"
%>
既然没有记录,那么记录集指向的既是bof又是eof