What should be done for auto generating primary key id in a table ?
No Answer is Posted For this Question
Be the First to Post Answer
What does jdbc stand for?
how to retrieve sql exceptions
Explain about the Try Block?
Why we use while rs next ())?
What is the difference between jdbc and odbc?
What is two-phase commit in the database?
What class.forname does, while loading the drivers?
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,
What is the different between ResultSet and RowSet?
Why can't I invoke the ResultSet methods afterLast and beforeFirst when the method next works?
What type of drivers have you used?
What are the components of jdbc?