你好,我的下载网为什么在显示top10时并未显示10条记录

wenxiuyun 2003-10-20 10:51:39
详情:http://www.ad163.net/download/
...全文
52 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
wenxiuyun 2003-10-22
  • 打赏
  • 举报
回复
sql= "select top10 * from yourtable "

该加到哪里?
starboy1413 2003-10-22
  • 打赏
  • 举报
回复
sql="select top10 * from yourtable"
feirulin 2003-10-22
  • 打赏
  • 举报
回复
肯定是数据中没有符合条件的10记录,你们的网站访问率不高嘛,呵呵
!!!!11
xiantao123 2003-10-22
  • 打赏
  • 举报
回复
符合条件的记录是不是不足10条
wenxiuyun 2003-10-22
  • 打赏
  • 举报
回复
我这个问题还没解决?
qunluo 2003-10-21
  • 打赏
  • 举报
回复
gz
mjwgtm 2003-10-21
  • 打赏
  • 举报
回复
select top 10 * from yourtable order by id desc
wenxiuyun 2003-10-21
  • 打赏
  • 举报
回复
我的QQ:113667632 欢迎联系!
wenxiuyun 2003-10-21
  • 打赏
  • 举报
回复
部分代码:
%>
</td>
<td></td>
<td valign="top" style="line-height:16px"><script src="http://www.ad163.net/ad163bbs/newtopic.asp?boardid=all&tlen=40&n=10&sdate=1&orders=2&info=0"></script>
</td>
</tr>
<tr>
<td height="10"></td>
<td></td>
<td></td>
</tr>
</table>
</td>
<td width="200" valign="top" bgcolor="<%=SkinSetting(4)%>" class="xuxian2">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="<%=SkinSetting(7)%>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="18" align="center" class="dropshadow"><font color="<%=SkinSetting(6)%>"><strong>今日下载
TOP 10</strong></font></td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="<%=SkinSetting(4)%>" style="line-height:16px">
<%
sql="select top 10 ID,FileName from Software where Hidden=false and PostType<>1 and Dayhits>0 and LastHit=date() order by DayHits DESC"
set rs=conn.execute(sql)
if rs.eof and rs.bof then
response.write "<center>今日没有下载!</center>"
else
do while not rs.eof
response.write "·<a href='view.asp?id="&rs(0)&"' target='_blank'>"&rs(1)&"</a><br>"
rs.movenext
loop
end if
%>
gmlxf 2003-10-20
  • 打赏
  • 举报
回复
不如:
select top 10 * from yourtable order by count desc
如果count的第10,与11,12相同,那么就会显示12条记录了。
你可以
select top 10 * from yourtable order by count desc,col2name desc
来解决。
如果是mssql就没有这个问题。


gmlxf 2003-10-20
  • 打赏
  • 举报
回复
我想你用的是access吧。
select top 10 * from yourtable order by col1 desc,col2..col3
你在order by后再加上你要的排序好了。
eduxh 2003-10-20
  • 打赏
  • 举报
回复
原因:
1、数据库里没足够的记录。
2、代码问题,请公布部分相关代码

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧