首页 IP地址查询 | Alexa排名查询 | 手机归属地查询
设为首页 收藏本站
  • 网络编程网络编程
  • 软件编程软件编程
  • 数据库技术数据库技术
  • 编程学院
  • 业界资讯 业界资讯
  • 源码中心源码中心
  • 会员中心会员中心
  • 页面导航: 首页网页计设正则表达式 → 能说明一下getrows的用法吗?

    能说明一下getrows的用法吗?

    发布: 发布日期:2006-06-25 字体:[增加 减小] 类型:转载

     举例如下:
        <html>
        <head>
        <title>精彩春风之getrows用法示例</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>

    Tags:
    为配合网络严查,文章评论将关闭敬请谅解.
    同 类 文 章
    最 近 更 新
    热 点 排 行