Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Select Statement

Select Statement

From: Ceri Moran <ceri_at_n-ary.com>
Date: 1997/07/09
Message-ID: <33c3fa6d.4695411@clientnews.wisper.net>#1/1

Hi,

I have a problem using the executeQuery method.

The code is as follows

          Class.forName("oracle.jdbc.OracleDriver");
          Connection con =

DriverManager.getConnection("jdbc:oracle:ceri/runrig" );

//- Create a SELECT statement object
          Statement statmt = con.createStatement();

//- Issue the SELECT statement. This line has exception err
          ResultSet res = statmt.executeQuery("select test_id from test");

//- Close Statement and Connection

          statmt.close();
          con.close();

It falls over at the line indicated with java.lang.IllegalAccessError: Unimplemented interface method at oracle.jdbc.OracleStatement.executeQuery(OracleStatement.java:114) at Test.main(Test.java:35)

Any ideas?

Thanks

Ceri

PS. Have resolved the connection issue, previously issued Received on Wed Jul 09 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US