Structured query language (SQL) |
A command string used to extract or update data in a database.
For Example:SELECT * FROM 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 |