Introduction To SQL
Introduction To SQL
SQL is a programming language for querying and modifying data and managing
databases. SQL was standardized first by the ANSI and (later) by the ISO. Most
database management systems implement a majority of one of these standards and add
their proprietary extensions. SQL allows the retrieval, insertion, updating, and
deletion of data.
The first version of SQL was developed at IBM by Donald D. Chamberlin and
Raymond F. Boyce in the early 1970s. This version, initially called SEQUEL, was
designed to manipulate and retrieve data stored in IBM's original relational
database product, System R. IBM patented their version of SQL in 1985, while the
SQL language was not formally standardized until 1986, by the American National
Standards Institute (ANSI) as SQL-86. Subsequent versions of the SQL standard have
been released by ANSI and as International Organization for Standardization (ISO)
standards.
FEATURES OF SQL:
SQL COMMANDS
DDL
Data Definition Language (DDL) statements are used to define the database
structure or schema.
DDL Commands: Create , Alter ,Drop , Rename, Truncate
DML
Data Manipulation Language (DML) statements are used for managing data within
schema objects
DCL
Data Control Language (DCL) statements is used to create roles, permissions, and
referential integrity as well it is used to control access to database by securing
it.
TCL
Transaction Control (TCL) statements are used to manage the changes made by DML
statements. It allows statements to be grouped together into logical transactions.
TCL Commands: Commit, Rollback, Save point