菜鸟的asp问题,请大家帮忙
源码如下:<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="98%" id="AutoNumber3" height="52">
<tr>
<td align=left width="100%" ><B>单位部门</B></td>
</tr>
<%set rstopdep=server.createobject("adodb.recordset")
sqltopdep="select top 5 * from "& db_EC_Dep_Table &" where depnumber>=0 order by depnumber desc"
rstopdep.open sqltopdep,Conn,1,1
if not rstopdep.EOF then
while not rstopdep.EOF
%>
<tr>
<td align="left" width="100%"><a class=class target="_blank" href="dep.asp?id=<%=rstopdep("id")%>"><%=rstopdep("E_DepName")%>-<%=rstopdep("E_DepType")%></a></td>
</tr>
<%rstopdep.MoveNext
wend
end if
rstopdep.close
set rstopdep=nothing
%>
<tr>
<td align=right width="75%" colspan="2"><a class=class href="E_Alldep.asp">更多</a></td>
</tr>
</table>
问题是sqltopdep="select top 5 * from "& db_EC_Dep_Table &" where depnumber>=0 order by depnumber desc"中的5为什么不起作用?谢谢