这段代码有什么不足之处? try { Connection conn = ...; Statement stmt = ...; ResultSet
这段代码有什么不足之处?
try {
Connection conn = ...;
Statement stmt = ...;
ResultSet rs = stmt.executeQuery("select * from table1");
while(rs.next()) {
}
} catch(Exception ex) {
}
请帮忙给出正确答案和分析,谢谢!