PreparedStatement stmt = conn
.prepareStatement("SELECT SUYF_SEQ_ID.NEXTVAL AS VAL FROM DUAL");
ResultSet res = stmt.executeQuery();
if (res.next()) {
seq = res.getInt("VAL");
System.out.println(seq+"--"+Thread.currentThread().getName());
}
289208--Thread-0
289210--Thread-0
289212--Thread-0
289214--Thread-0
289216--Thread-0
289218--Thread-0
289220--Thread-0
289222--Thread-0
获取序列为什么都是跳着取?执行了两次?