日期:2014-05-16 浏览次数:21023 次
<%
sql="select * from tb"
set rs=conn.execute(sqlstr)
sql="select max(col1) from tb"
set rsmax1=conn.execute(sql)
sql="select max(col2) from tb"
set rsmax2=conn.execute(sql)
do while not rs.eof
if rs("col1")=rsmax1(0) then
response.write "<B><font color=#FF0000>" & rs("col1") & "</font></B>"
else
response.write rs("col1")
end if
if rs("col2")=rsmax2(0) then
response.write "<B><font color=#FF0000>" & rs("col2") & "</font></B>"
else
response.write rs("col2")
end if
rs.movenext
loop
%>