[Previous slide] [Next slide] Java and Database Connectivity

Getting a ResultSet

You get hold of the data by asking the statement for a ResultSet

    ResultSet r = s.executeQuery( q);

    while ( r.next())
    {
        // do things with the row
    }

If there's time, show examples of doing things with ResultSets, e.g. DataMenuWidget.getOptions()

 


give me feedback on this page // show previous feedback on this page