你可以用 select top 20 percent from 表的名字 实现!!!具体例子如下:
<% set rs=server.createobject("adodb.recordset") editsql="select top 20 percent from 表的名字 " rs.open editsql,db,1,3
%>
select top 20 percent from 表的名字
top n是用来显示结果集中的前n 行数据或显示总行数的n %,
可不可以加percent啊,而直接用20%这样行吗???
是啊!大家最近什么样了啊.我也很喜欢网页制作,有空的话 ,去我的论坛上看看啊 !!呵呵
最近 很忙 都很久 没有来这了!!呵呵 !!
呵呵!大家要学会互相帮助吗!!
先取得数据总数,然后select top "&数据总数*0.2&".....