<!--#include file="conn.asp"-->
<%
set rs=Server.CreateObject("adodb.recordset")
sql ="select top 3 * from aa where tj<>'1' order by rnd(id)"
rs.open sql,conn,1,1
%>
<%
do while not rs.eof
%>
<%=rs("id")%><%=rs("tj")%><%=rs("nr")%><br>
<%
rs.movenext
loop
%>
这里假设你的tj是文本类型