Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

resultset get value

conn = DBConnection.connect();
    String SQL = "SELECT * from usertable";
    // ResultSet
    ResultSet rs = conn.createStatement().executeQuery(SQL);
    if (rs.next()) {
        System.out.println(rs.getString(1));
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #resultset
ADD COMMENT
Topic
Name
6+4 =