I am having some difficulties in java while comparing between a variable and the next resultset. In my case, I want : if the temp variable = rs.next() then temp ="" else the rs.next() value should be displayed.
这是因为我多次走到国名现场,所以我要再次找回。
我的法典
while(rs.next()){
%>
<tr>
<td width="238">
<%temp=rs.getString("TNAME");%>
<%=temp%> </td>
<td><%=rs.getString("ID")%></td>
<%
if (rs.next().equals(temp){
temp="";
}
}
rs.close();
%>