能说明一下GETROWS的用法吗?

网络编程 2021-07-05 10:07www.168986.cn编程入门

 举例如下:
    <HTML>
    <HEAD>
    <TITLE>精彩春风之GETROWS用法示例</TITLE>
    </HEAD>
    <BODY BGColor=ffffff Text=000000>
    <%
    Set = Server.CreateObject("ADODB.Connection")
    .Open Application("guestDSN")
    sql = "SELECT * FROM authors"
    Set RS = .Execute(sql)
    ary = rs.GetRows(10)
    rs.close
    .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>

Copyright © 2016-2025 www.168986.cn 狼蚁网络 版权所有 Power by