How we can you use preparedstatement.
No Answer is Posted For this Question
Be the First to Post Answer
Is jdbc secure?
Discuss the procedure of retrieving warnings?
How can a java objects be stored in database?
Explain the difference between rowset vs. Resultset in jdbc?
How can we disable a constraint ?
What is meant by connection string?
what is the best way, in terms of performance, to do multiple insert/update statements, a PreparedStatement or Batch Updates?
Hi my doubt is that preparedStatement is a interface means which has no implemenation.plz go thru the code below String sql = "SELECT * FROM movies WHERE year_made = ?"; prest = con.prepareStatement(sql); prest.setInt(1,2002); ResultSet rs1 = prest.executeQuery(); Now setInt and executeQuery how it works since it is interface it does not have implementation how it works, how executeQuery returns result from database as executequery method has no implementation even in Statement interface.
4 Answers Cybermate, Hexaware,
When do we get java.sql.SQLException: No suitable driver found?
What is odbc jdbc?
I have the choice of manipulating database data using a byte[] or a java.sql.blob. Which has best performance?
How can I connect mysql or oracle with java?