Professional Documents
Culture Documents
JDBC:
For any application to communicate with the database, it needs
to have the following information:
23
So, we use JDBC calls to retrieve and update information from a data
base use JDBC. This involves the following functions:
ODBC API:
Oracle
Application Data Base
ODBC
24
JDBC API:
Java Database Connectivity provides a database progamming
API for Java programs. Java programs cannot directly communicate
with the ODBC driver. Sun Microsystem provides a JDBC-ODBC
bridge that translate JDBC to ODBC.There are several type of JDBC
drivers available They are:
1.execute Query ( )
25
2.execute Update ()
3.execute( )
PREPARED STATEMENTS:
The prepared Statement interface descends from the
Statement interface and uses a template to create a SQL request. Use
a Prepared Statement to send precompiled SQL statements with on or
more parameters.
Query PreparedStatement:
26
Pstmt.setString(1,”2msc18”);
CALLABLE STATEMENT:
27
GUI based data base manipulation. If you click the Show button, it
displays all rows in student table.
28