Database Languages
Database System support two type of languages, the first language that can specify the schema and the second language express queries and updates.
In other words, Database languages are specialized languages used to define, manipulate, control, and query data in a database management system (DBMS)
Database languages are generally divided into the following types:
1. DDL — Data Definition Language
Data Definition Language (DDL)
A Database schema is specified by special type of language called DDL.
The Result of compilation of DDL statement is a set of table that stored in a special file called data dictionary.
DDL is used to define or change the structure of database objects such as tables.
Commands: CREATE, ALTER, DROP
Example : create command
2. DML — Data Manipulation Language
That enable accessing and manipulate data as organized by the data model. i.e . Retrieval, Insertion, Updation and deletion.
DML is also known as query language is two type:-
Procedural DML : users specify what data are needed and how to get those data.
Non Procedural DML : users specify what data are needed without specifying how to get those data.
DML is used to insert, update, and delete data in tables.
Commands: INSERT, UPDATE, DELETE
Get Kumar’s stories in your inbox
Join Medium for free to get updates from this writer.
Example: Insert , UPDATE, DELETE Command
3. DQL — Data Query Language
DQL is used to retrieve data from the database.
SQL is the most widely used query language, a portion of DML involves retrieval of information is called query language.
Command: SELECT
Example: Select Command
4. DCL — Data Control Language
DCL is used to control access and permissions on the database.
Commands: GRANT, REVOKE
Example: Grant Command
5. TCL — Transaction Control Language
TCL is used to manage database transactions.
Commands: COMMIT, ROLLBACK, SAVEPOINT
Example: COMMIT Command
Example: ROLLBACK Command
Note : If AUTOCOMMIT is turned off, the previous command can be rolled back.
The above commands will be discuss in SQL.







