Database Languages
Database Languages
Database Languages
DATABASE LANGUAGES
Chapter#5
DBMS Languages
DATA DEFINITION LANGUAGE (DDL)
is used for defining the database schema.
Used by the DBA and database designers to specify the
conceptual schema of a database
is used to define the conceptual and internal schemas for
the database.
The DDL statements are also used to specify the integrity
rules .(constraints) in order to maintain the integrity of
the database.
DDL also accepts input in the form of instructions
(statements) and generates the description of schema as
output. The output is placed in the data dictionary,
which is a special type of table containing metadata .The
DBMS refers the data dictionary before reading or
modifying the data. database users cannot update the
data dictionary; instead it is only modified by database
system itself
Some examples:
CREATE - to create objects in the database
ALTER - alters the structure of the database
DROP - delete objects from the database
TRUNCATE - remove all records from a table, including
all spaces allocated for the records are removed
COMMENT - add comments to the data dictionary
RENAME - rename an object
separate storage definition language (SDL) and view
definition language (VDL) are used to define internal and
external schemas.
3 Page 1 of
3- 112
DATABASE LANGUAGES
3 Page 2 of
3- 112
DATABASE LANGUAGES
Some examples:
GRANT - gives user's access privileges to database
REVOKE - withdraw access privileges given with the
GRANT command
3 Page 3 of