如果选择案例 7,我想显示所有这些记录,但我不知道如何在 asp classic 中打开指定的记录,可以吗?
ELSE IF @Case = 7 BEGIN
SELECT TOP 5 * FROM dbo.tbl_PostalCode WHERE (PostalCode = @PostalCode)
SELECT TOP 5 * FROM dbo.tbl_PostalCode_AutoWorkshop WHERE (PostalCode = @PostalCode)
SELECT TOP 5 * FROM dbo.tbl_PostalCode_Expert WHERE (PostalCode = @PostalCode)
SELECT TOP 5 * FROM dbo.tbl_PostalCode_Samsung WHERE (PostalCode = @PostalCode)
SELECT TOP 5 * FROM dbo.tbl_PostalCode_SonyCIC WHERE (PostalCode = @PostalCode)
SELECT TOP 5 * FROM dbo.tbl_PostalCode_Whitegoods WHERE (PostalCode = @PostalCode)
END
这是我可以显示来自 dbo.tbl_PostalCode 的第一条记录的 html + asp
<tr>
<td class="blackb">RecId</td>
<td class="blackb">Country</td>
<td class="blackb">PostalCode</td>
<td class="blackb">Town</td>
<td class="blackb">Lat</td>
<td class="blackb">Lng</td>
</tr>
<%
If Not RSOrder.EOF then
Do Until RSOrder.EOF
%>
<tr>
<td><%=RSOrder("Rec_ID")%> </td>
<td><%=RSOrder("Country")%></td>
<td><%=RSOrder("PostalCode")%> </td>
<td><%=RSOrder("Town")%> </td>
<td><%=RSOrder("Lat")%></td>
<td><%=RSOrder("Lng")%></td>
</tr>
<%
RSOrder.MoveNext
Loop
Else%>
<%End If %>
<%End if%>