If iam using JDBC API, do I also have to use ODBC?
Answer / arvind gupta
Yes , We can . for the same we have to set desired driver.
first.
ok
| Is This Answer Correct ? | 1 Yes | 1 No |
What is JDBC and ODBC and what are the differences between them?
11 Answers Idbi Bank, Infosys, Infoview, TCS,
Why is jdbc used?
Which type of driver provides jdbc access via one or more odbc drivers?
What is jdbc odbc bridge in java?
What is com mysql jdbc driver?
How to store images in database?
Which type of JDBC driver is the fastest one?
How many categories of jdbc drivers are there?
In which ways is driver class is registered with drive manager?
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 causes no suitable driver error?
How to test jdbc connection to sql server?