DBMS

DBMS Languages

DBMS Languages

DBMS languages are required to practically implement the design of the database. They are of following types:

DDL (Data Definition Language)

DCL (Data Control Language)

DML (Data Manipulation Language)

TCL (Transaction Control Language)


DDL (Data Definition Language)

It is used to define database structure or skeleton of the database. It is used to create schema, tables, indexes, constraints, etc. in the database.

DDL is used to store and  access the information of metadata like the number of tables and schemas, their names, indexes, columns in each table, constraints, etc.

Some of the tasks of DDL are: 

Create: 

It is used to create objects in the database.

Alter: 

It is used to alter the structure of the database.

Drop: 

It is used to delete objects from the database.

Rename: 

It is used to rename an object.

Comment: 

It is used to comment on the data dictionary.


DML (Data Manipulation Language)

It is used for accessing and manipulating data in a database.  It handles user requests.

Some of the tasks of DML are: 

Select: 

It is used to retrieve data from a database.

Insert: 

It is used to insert data into a table.

Update: 

It is used to update existing data within a table.

Delete: 

It is used to delete all records from a table.

Call: 

It is used to call a structured query language.


DCL (Data Control Language)

It is used to give and take away authorizations and privileges to users or user groups The DCL execution is transactional. It also has rollback parameters. (But in Oracle database, the execution of data control language does not have the feature of rolling back.)

Some tasks that come under DCL:

Grant: 

It is used to give user access privileges to a database.

Revoke: 

It is used to take back permissions from the user.
Following operations have the authorization of Revoke:

CONNECT, INSERT, EXECUTE, DELETE, UPDATE and SELECT.


TCL (Transaction Control Language)


TCL is used to run the changes made by the DML statement. TCL can be grouped into a logical transaction.

Some tasks that come under TCL are:

Commit: 

It is used to save the transaction on the database.

Rollback: 

It is used to restore the database to original since the last Commit.
Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Check Also
Close
Back to top button