How to find out if a Java ResultSet obtained is empty?
Posted
by Bruce
on Stack Overflow
See other posts from Stack Overflow
or by Bruce
Published on 2010-05-30T13:30:30Z
Indexed on
2010/05/30
13:32 UTC
Read the original article
Hit count: 194
java
Class.forName("org.sqlite.JDBC");
Connection conn =
DriverManager.getConnection("jdbc:sqlite:userdata.db");
Statement stat = conn.createStatement();
ResultSet rs = stat.executeQuery("SELECT * from table WHERE is_query_processed = 0;");
How can I find out if rs is empty?
© Stack Overflow or respective owner