Search...

Showing posts with label database connection with java. Show all posts
Showing posts with label database connection with java. Show all posts

Saturday, November 8, 2014

JDBC type-2 ThinDriver example

class mydatabse
{
      Connection cn;
     ResultSet rs;
     Statement st;
    PreparedStatement pst;


Friday, November 7, 2014

JDBC Driver Types

JDBC is an API that helps the programmer to connect with RDBMS & perform the all database centric operation.

JDBC drivers are divided into four types or levels. The different types of jdbc drivers are:
Type 1: JDBC-ODBC Bridge driver (Bridge)
Type 2: Native-API/partly Java driver (Native)
Type 3: AllJava/Net-protocol driver (Middleware)
Type 4: All Java/Native-protocol driver (Pure)

4 types of jdbc drivers are elaborated in detail as shown below: