problem with PreparedStatement
y we cant set table name as place holder in the PreparedStatement object?
PreparedStatemen ps=con.prepareStatement("select ? from ?");
ResultSet rs = ps.executeQuery();
Above code compiles fine, but at runtime it gives invalid table name exception..
Any body can realize me what acually happens here?
SMS speak has no place in a programming forum
To stop appearing semi-literate, read and follow the tips contained here:
Originally Posted by Yuvarajsinh