what is CallableStatement and what is its usage?
Answer / checkout
Callable statement is the one of the SQL statement.
Callable statement usage, to execute stored procedures
using preparecall() method.
| Is This Answer Correct ? | 10 Yes | 1 No |
How does jdbc connect to database?
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 hbm xml?
How MS-Access DB can be accessed over a network, using JDBC API?
How warnings are retrieved in JDBC?
What are the different types of statements in jdbc?
Differentiate between type_scroll_insensitive and type_scroll_sensitive.
Does jdbctemplate close connection?
Is jdbc a middleware?
MY code is: public class P1{ public static void main(String ar[]) { class.forName("java.lang.String"); } } errors i got are :New.java:5: error: <identifier> expected class.forName("java.lang.String"); ^ New.java:5: error: invalid method declaration; return type required class.forName("java.lang.String"); ^ New.java:5: error: illegal start of type class.forName("java.lang.String"); ^ New.java:7: error: reached end of file while parsing } ^ 4 errors HELP ME>......
What are static and dynamic queries?
Which package contains jdbc api?