Database_(1)[1]
Database_(1)[1]
4. Query (select)
Java Database Connectivity (JDBC Programming)
JDBC API
JDBC DriverManager
The driver must be loaded before connecting to a database, to locate, load and link the
driver class.
Java Database Connectivity (Overview of JDBC
API)
The DriverManager class
A layer of JDBC working b/n the driver and the user
It keep track the registered drivers connection between the database and the driver
SQL statements are sent to the database for execution and returns the results of the
execution
Java Database Connectivity (Overview of JDBC
API)
The Statement Interface
Is used to execute a static SQL statement
executeQuery
ExecuteUpdate
Execute query
2. Create a connection
getConnection() method of DriverManger class is used to create a connection
Statement s= con.createStatement();
Java Database Connectivity ( Steps to connect a java application to
database )