Which constraint cannot be specified as an explicit constraint and should be specified with the column only ?
No Answer is Posted For this Question
Be the First to Post Answer
What is execute in java?
Is jdbc open source?
What do you mean by jdbc batch processing and what are the advantages of using jdbc batch processing?
What are drivers available?
What is jdbc and its types?
What is jdbc driver in java?
What happens if connection is not closed in jdbc?
what is the difference between SENSITIVE and INSENSITIVE?
What are the differences between setmaxrows(int) and setfetchsize(int)?
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,
How can we retrieve data from the resultset?
Statement, PrepareStatement and Callable all these are interfaces. Thought it is a interface how come we are creating objects and calling methods("preparestatement()") in it. In which class this method is defined. Please let me know. Thanks in advance. example: PreparedStatement pre = con.prepareStatement( "UPDATE COFFEES SET SALES = ? WHERE COF_NAME LIKE ?");