介绍一下GETROWS的用法
发布时间:2006-10-14 2:45:31   收集提供:gaoqian
<HTML>
    <HEAD>
    <TITLE>Place Document Title Here</TITLE>
    </HEAD>
    <BODY BGColor=ffffff Text=000000>
    <%
    Set cn = Server.CreateObject("ADODB.Connection")
    cn.Open Application("guestDSN")
    sql = "SELECT * FROM authors"
    Set RS = cn.Execute(sql)
    ary = rs.GetRows(10)
    rs.close
    cn.close
    %>
    <P>
    <TABLE BORDER=1>
    <%
    nRows = UBound( ary, 2 )
    For row = 0 To nRows %>
    <TR>
    <% For col = 0 To UBound( ary, 1 ) %>
    <TD><%= ary( col, row ) %> </TD>
    <% Next %>
    </TR>
    <% Next %>
    </TABLE>
    </HTML>

 
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50