Jdbc Part-1 (1)
Jdbc Part-1 (1)
JDBC part-1
JDBC:
JDBC stands for Java DataBase Connectivity.
JDBC is a specification for developing database applications with Java
programming language.
Database Application:
An application that communicates with database is known as database
application.
Application:
An application is a program in which we interact with on the desktop.
Database:
A database is a software and it is an organised collection of data.
Data organized in a database in the form of tables.
Each table contains fields and records.
Application is a front end & database is a back end.
Application uses SQL to communicate with database.
SQL:
SQL stands for Structured Query Language.
List of databases:
1) Oracle
2) MySQL
3) MS-SQL Server
4) MS-Access
5) DB2
6) Derby
7) Sybase
8) DBase
9) FoxPro
10) Visual FoxPro .. etc.,
Application is called as client and database is called as server.
Client:
A client is a software that sends the request to server to get the response.
Server:
A server is a software that receives request from the client, process the request,
constructs the response and sends the response back to a client.
Driver:
A driver is a software and it is used to connect application & database.
Specification:
A specification is a set of rules & guidelines that are used to develop
environments & applications.
JDBC specification used by vendors to develop drivers.
JDBC specification also used by Java programmers to develop database
applications.
JDBC API:
JDBC API is a Java API, that can access any kind of tabular data and data especially
stored in RDBMS.
1) java.sql package 2) javax.sql package
java.sql package
Classes Interfaces
1) DriverManager 1) Driver
2) SQLException 2) Connection
3) Types 3) Statement
4) Date 4) PreparedStatement
5) Time 5) CallableStatement
6) ResultSet
7) ResultSetMetaData
8) DatabaseMetaData
9) Blob
10) Clob