会ASP和SQL的人请进!

2025-12-05 11:46:09
推荐回答(1个)
回答1:

<%

dim rs
set rs=server.createobject("adodb.recordset")
rs.open"select * from CallNoUser where startdate>'2006-07-02' and groupNo<>'softphe' order by GroupNo compute sum(ThisTime) by groupNo ",conn,1,1
if rs.eof then
response.write("")
else
%>


显示查询结果










<%
do while not rs.eof
%>



<%
rs.movenext
loop
%>
表字段1表字段2表字段3表字段4表字段5
<%=rs("表字段1")%><%=rs("表字段2")%>
<%=rs("表字段3")%>
<%=rs("表字段4")%>
<%=rs("表字段5")%>

<%
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>


注意:分页自己做了,我没有测试,可能会有错误!你检查下,我发现好象你的SQL语句有问题!!