b_book1.gif (162 bytes) Database

Structured query language (SQL)

b_dfn.gif (837 bytes)Structured query Language (SQL);
A command string used to extract or update data in a database.
  • Structured Query Language is the most common approach to view data in a database.
  • SQL is currently an international standard for relational databases.
  • Open Database Connectivity (ODBC) uses SQL.
  • MS-Access uses SQL to store it's queries
  • Oracle (SQL*Plus), Informix uses (iSQL) and Progress have special modules to access its database via SQL.
  • Microsoft have a database server (MS-SQL Server) specifically built to handle SQL commands.

For Example:

SELECT * FROM premp
Select all records from the employee payroll table - premp)

SQL Components

SQL always produces a SET of data, which is basically a rectangular block of rows (records) and columns (fields). The data is produced at the same level of summarisation, so the output (table returned) of an SQL query will NOT allow control breaks.

SQL consists of these component languages:

Language Examples
DDL Data Definition Language Create table, Create index etc
DCL Data Control Language. Grant, Revoke
DML Data Manipulation Language Insert, Delete, Update
DQL Data Query Language. Select.
TPL Transaction Processing Begin work, Rollback, Commit

[Rev: 09/09/01] 27 Mar 97 © 1997-99 V/2-Com (Verhaart), P O Box 8415, Havelock North, New Zealand.