Java Database Connectivity (JDBC)
JDBC ( Java Database Connectivity ) Database : A database is a separate application that stores a collection of data. Why to Learn JDBC? The JDBC library includes APIs we can use for : 1.Making a connection to a database. 2.Creating SQL or MySQL statements. 3.Executing SQL or MySQL queries in the database. 4.Viewing & Modifying the resulting records. What is JDBC? JDBC is a standard Java API for database connectivity between the Java programming language and a wide range of databases. JDBC Architecture JDBC Architecture consists of two layers − 1. JDBC API − This provides the application-to-JDBC Manager connection. 2. JDBC Driver API − This supports the JDBC Manager-to-Driver Connection. Common JDBC Components The JDBC API provides the following interfaces and classes − DriverManager Driver Connection Statement ResultSet SQLException Types of Driver Driver divided into four categories as below Type 1 − JDBC - ODBC Bridge Driver (ODBC ...
Comments
Post a Comment