Difference between DDL, DML, and DCL in RDBMS
DDL, DML, and DCL are three categories of SQL commands used in relational database management systems (RDBMS). Here is a brief explanation of each:
Data Definition Language (DDL):
DDL is used to define the database structure or schema. It includes commands like CREATE, ALTER, DROP, TRUNCATE, etc. These commands are used to create and modify database objects like tables, indexes, views, etc.
Data Manipulation Language (DML):
DML is used to manipulate the data stored in the database. It includes commands like SELECT, INSERT, UPDATE, DELETE, etc. These commands are used to retrieve, insert, update, and delete data in the database tables.
Data Control Language (DCL):
DCL is used to control access to the data in the database. It includes commands like GRANT and REVOKE. These commands are used to grant or revoke permissions or privileges on database objects to users or roles.
Overall, DDL is used for defining the database structure, DML is used for manipulating the data, and DCL is used for controlling access to the data in an RDBMS.
Please login or Register to submit your answer