Re: Sequence Error ORA-02287

From: jfk303 <james.kennedy_at_students.plymouth.ac.uk>
Date: 21 Mar 2005 06:40:18 -0800
Message-ID: <1111416018.653235.143370_at_o13g2000cwo.googlegroups.com>


Thanks for the reply,

Sorry if this is more of a Java question rather than o.d:

Ok, I'm now putting the currrval into a variable. My query returns a RecordSet, could anyone tell me how to get the value from the RecordSet into a variable.

Whats wrong with this:

RecordSet myResults = DatabaseConnection.ExecuteQuery("SELECT my_seq.currval FROM DUAL");

int currentValue = myResults.getInt("my_seq.currval");

Thanks for any answers,

Jim Received on Mon Mar 21 2005 - 15:40:18 CET

Original text of this message