【问题2】(7分)
该商务网站的计数器部分代码如下,请根据题目说明,将空缺的代码补充完整。
<%
set conn=server.createobject("adodb.connection")
(7) .provider="sqloledb "
provstr="server=127.0.0.1; database= (8) ; uid=sa; pwd=9857452"
conn_.open provstr
set rs=conn.Execute("select * from counter")
……
conn.Execute"Update counter set counter=counter+1, today=0, statdtm=date(), daynum=daynum+1, yesterday="&rs("today") &""
conn.Execute" (9) into yesday(yesday.stats) values ( ' " &yesday&" ', "&rs("today")&")"
……
application. (10)
if rs("top") conn.Execute"Update counter set counter=counter+1, today=today+1, [top]=" &rs("today") &""
else
conn.Execute"Update counter set counter=counter+1, today=today+1"
end if
(11) .unlock
end if
counters= (12)
today= (13)
yesterday=rs("yesterday")
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
document.write('总共访问量:<%=counters%>, 今日访问: <%=today%>, 昨日访问: <%=yesterday%>');
【问题3】(2分)
从上述ASP代码可以判断出,计数器表counter中statdtm的字段类型是(14),counter的字段类型是 (15)。