Statement stmt = con.createStatement();
String pubBooks = "select title_name " +
"from publisher, title " +
"where pub_name = ? " +
"and publisher.pub_no = title.pub_no " +
"order by title_name";
ResultSet rS = stmt.executeQuery(pubBooks);
stmt.close();
String pubss = "Irwin";
PreparedStatement pStmt =
con.prepareStatement(pubBooks);
pStmt.setString(1, pubss);
pStmt.executeUpdate();
Hey, I'm trying to use JDBC to query my database to the the list of book titles produced by that publisher however I run into the error java.sql.SQLException: ORA-01008: not all variables bound. I've been trying everything that I can think of but I am just not quite sure what to do at this point.