更新时间:2021-08-19 15:05:41
我开始说比我不是一个Java程序员,你可以尝试关闭jOOQ DSL也:
I start by saying than i am not a Java programmer, you can try to close jOOQ DSL also:
try(java.sql.Connection conn = Connection.hikariDataSource.getConnection()) {
try (Record1 record1 = DSL.using(conn).select(SENSOR.ID)) {
.from(SENSOR)
.where(SENSOR.ID.equal(1))
.limit(1)
.fetchOne();
Debug.println(record1.getValue(0).toString());
} catch (Exception e) {
e.printStackTrace();
}
} catch (SQLException e) {
e.printStackTrace();
}