Hello! The setString () method of preparedStatement does not work. This is not how it works:
prStmt = conn.prepareStatement("SELECT * FROM ?"); prStmt.setString(1, "cases"); rs = prStmt.executeQuery();
And this is how it works:
prStmt = conn.prepareStatement("SELECT * FROM cases"); rs = prStmt.executeQuery();
Although the documentation says:
void setString (int parameterIndex, String x), where x is set instead of the "?"
Tell me what could be the problem?