怎样在表中搜索返回前20%的数据?
请帮我这个菜鸟的忙,我先谢谢大家了
2004-09-29 17:58
你可以用 select top 20 percent from 表的名字 实现!!!具体例子如下:
<% set rs=server.createobject("adodb.recordset") editsql="select top 20 percent from 表的名字 " rs.open editsql,db,1,3
%>

2004-09-29 19:13
2004-10-03 22:37
select top 20 percent from 表的名字
top n是用来显示结果集中的前n 行数据或显示总行数的n %,
可不可以加percent啊,而直接用20%这样行吗???

2004-10-06 12:38
2004-10-10 15:19
是啊!大家最近什么样了啊.我也很喜欢网页制作,有空的话 ,去我的论坛上看看啊 !!呵呵
最近 很忙 都很久 没有来这了!!呵呵 !!

2004-11-25 00:50
2004-11-25 11:20
select top 20 percent from 表的名字
top n是用来显示结果集中的前n 行数据或显示总行数的n %,
可不可以加percent啊,而直接用20%这样行吗???

先取得数据总数,然后select top "&数据总数*0.2&".....

2004-11-25 16:02