用子查询的办法进行两个表的查询呢?
<%
Dim Sql
set rs=server.CreateObject("adodb.recordset")
SQL="select * from second_class_name where big_class_name"
SQL=SQL&" in (select big_class_name from big_class) order by id desc"
rs.open SQL,conn,1,1
do while not rs.eof
%>
<tr>
<td><%=rs("big_class_name")%></td>
</tr>
<tr>
<td><%=rs("small_class_name")%></td>
</tr>
<%
rs.movenext
loop
rs.close
set rs=nothing
%>
用SQL语句进行两个表的联合查询,将两个表的查询结果汇总到一个rs对象内。