To retrieve data from the table based on a condition: SELECT * from employees WHERE salary >5000 ORDER BY salary DESC (Whether descending or ascending), name.
The following are the basic SQL Statements
- DML: Data Manipulation Language - insert, update, delete commands
- DDL: Data Definition Language \u2013 create (table, procedure, function),
- CLI is a library of function calls that supports SQL Statements.
- JDBC is also CLI
- The most important benefit for programmers using the ODBC or JDBC
CLI is the interoperability.
- All clients adhere to a standard programming interface.
- ODBC is Microsoft\u2019s implementation of a CLI.
- It allows the programmer to develop, compile and deploy an application
- The ODBC interface defines a library of function calls that allow an application to connect to a DB, execute SQL statements and retrieve results.
a) establish connection with a database
b) send SQL statements
c) processes the results
JDBC library provides the means for executing SQL statement to access and operate on a relational database. JDBC Library is a set of classes and interfaces that provide a uniform API for access to a broad range of databases.
First of all before connection to a database, we need to have the Driver for that Database. A Driver is an interface / Bridge between 2 objects, for example between the hardware and software.
It is the duty of the Driver to read, store or retrieve data from the back end. The Driver reads data from the Database and converts it into a known format. So we have different drivers for different databases.
Because SQL is an application-specific language, a single statement can be very expressive and can initiate high-level actions, such as sorting and merging data. SQL was standardized in 1992 so that a program could communicate with most database systems without having to change the SQL commands.
In this model, the java applet / application interact directly with the database. A JDBC driver is required to communicate with the particular database management system that is being accessed. The SQL statements are sent to the database and the results are given to the user. This type of model is referred to as the client / server configuration where user is the client and the machine that has the database is called the server.
a) Collection of SQL statements from the client and handing over the same to the DB
b) Receiving results from the DB to the client
c) Maintaining control over accessing and updating of the data.
Middle tier until recently had been written in C and C++ which enable faster performance. With the introduction of optimizing compilers that translate java byte codes into machine specific code, it is not possible to implement the middle tier in java.
This driver converts JDBC calls into calls on the client API for Oracle, Sybase, Informix and other DBMS. But some binary code has to be loaded on all clients like the bridge driver and again not suitable for large applications.
Now bringing you back...
Does that email address look wrong? Try again with a different email.