一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

数据分行(任意)输出的两种方法

时间:2022-06-30 10:22:43 编辑:袖梨 来源:一聚教程网


<%
'set rs=server.CreateObject("adodb.recordset") /. Rs在connect.asp在有定义
sql="select * from 试卷信息"
rs.open sql,conn,1,1
%>
++++++++++++++ 方法一 ++++++++++++++++++++++++++++++++++++++++++++++++++++++


<%
j=0
do while not rs.eof
j=j+1 %>

<% if (j mod 2=0) and j>=2 then %>

<% end if
rs.movenext
loop%>

<% =rs("试卷名称")%>

++++++++++++++ 方法二 ++++++++++++++++++++++++++++++++++++++++++++++++++++++

<% do while not rs.eof %>


<%
rs.movenext
k=k+1
if k>5 then exit do
%>

<%
k=k+1
if k>5 then exit do
rs.movenext
loop%>
<% =rs("试卷名称")%> <% =rs("试卷名称")%>


热门栏目