我做了一个系统,每次只要读取一条记录,有没有不建立记录集的只读取一条记录的方法?
难道也是那种
Resultset rs=db.executeQuery(sql);
if }rs.next()){
out.println(rs.getString(1));
..........
}