db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob M <rgmatth...@orcon.net.nz>
Subject accessing records problem
Date Mon, 10 Feb 2014 09:19:45 GMT

I am calling derby within a larger java program....................

Step1: I allocate a database "Connection" object
Step2: I allocate a "Statement" object in the connection
Step 3: I execute a SQL SELECT query, the query result is returned in a
"ResultSet" object
so far so good (I update the latest database record, I add a new record and
I delete the oldest record
I then call a data mining program [Weka]
I setup a few Weka models etc......
I then wish to look at the last 100 records in my database, one at a time
The code I have currently is as follows:-
try {
Statement s = null;
ResultSet rs = null;
rs = s.executeQuery ("SELECT".................);
int k = 0
while (k < 101) {
catch (Exception e)

I get the following error:-

do I need to do something further to read my 100 records?

Bob M

View this message in context: http://apache-database.10148.n7.nabble.com/accessing-records-problem-tp136964.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.

View raw message