Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Select Statement
Hi,
I have a problem using the executeQuery method.
The code is as follows
Class.forName("oracle.jdbc.OracleDriver"); Connection con =
//- 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
![]() |
![]() |