欧诗漫这个牌子怎么样:关于ASP读取数据库!

来源:百度文库 编辑:神马品牌网 时间:2024/04/27 17:08:10
数据库中有100条数据!
如果我希望,每读取5条自动换到下一行
每读取10行,自动加一条水平线!

另外在问下,如果有一列数据,如何获取最大的那一个,又如何获取最小的那一个.

do while not rs.eof
if i/5=int(i/5) then
response.write("<br>")
end if
if i/10=int(i/10) then
response.write("<img src="" height=1 width=500>")
end if

rs.movenext
loop

获取最大的
do while not rs.eof
if rs("XX")>aa then
aa=rs("XX")
end if
rs.movenext
loop