List few commands of DDL DML and DCL

+1 vote
Hi!!

Can someone list few commands of DML, DCL, & DDL?
Nov 12, 2018 in Database by DataKing99
• 8,250 points
120,682 views

2 answers to this question.

+1 vote

The list of commands is as follows: 

Data Definition Language (DDL) commands:

  • CREATE to create a new table or database.
  • ALTER for alteration.
  • Truncate to delete data from the table.
  • DROP to drop a table.
  • RENAME to rename a table.

Data Manipulation Language (DML) commands:

  • INSERT to insert a new row.
  • UPDATE to update an existing row.
  • DELETE to delete a row.
  • MERGE for merging two rows or two tables.

Data Control Language (DCL) commands:

  • COMMIT to permanently save.
  • ROLLBACK to undo the change.
  • SAVEPOINT to save temporarily.
answered Nov 12, 2018 by Sahiti
• 6,370 points
What you have written as DCL is infact TCL. DCL is used for granting permissions to users for maintaining sessions. Eg commands: GRANT, REVOKE.

TCL is used for transaction control. Eg: ROLLBACK,COMMIT,SAVEPOINT

Hello,

You can go through this:https://www.studytonight.com/dbms/dcl-command.php for better concept

DCL(Data Control Language)

  • Grant
  • Revoke
–1 vote

Data Definition Language (DDL) commands:

  • CREATE to create a new table or database.
  • ALTER for alteration.
  • Truncate to delete data from the table.
  • DROP to drop a table.
  • RENAME to rename a table.

Data Manipulation Language (DML) commands:

  • INSERT to insert a new row.
  • UPDATE to update an existing row.
  • DELETE to delete a row.
  • MERGE for merging two rows or two tables.

Data Control Language (DCL) commands:

  • COMMIT to permanently save.
  • ROLLBACK to undo the change.
  • SAVEPOINT to save temporarily.
answered Dec 18, 2020 by Abdul
• 140 points
Commit , Rollback , Savepoint are TCL (TRANSACTION CONTROL LANGUAGE) commands and DCL commands are  GRANT AND REVOKE
0 votes
DML CMD-- (DATA_MANIPULATION_CMDS);
1. SELECT--FOR FETCHING THE RECORDS.
2. UPDATE--FOR UPDATING THE SPECIFIC TYPE OF RECORDS.
3. DELETE-- USED FOR DELETING THE FILTERING RECORDS.
4. INSERT-- FOR INSERTING THE DATA OR RECORDS IN A TBL (TABLE).

DCL CMD-- ( DATA CONTROL CMDS);
1. GRANT--gives user's access privileges to database.
2. REVOKE--withdraw user's access privileges given by using the GRANT command.

DDL CMD-- ( DATA DEFINITION CMDS);
1. CREATE-- FOR CREATING THE NEW TABLE OR DATABASE.
2. DROP-- FOR DROPPING THE WHOLE TABLE OR DATABASE WITH ITS STRUCTURE (SCHEMA).
3. ALTER-- IT IS USED IN MANY TYPES OF OPERATIONS LIKE--
• FOR DROPPING THE COLUMN/COLUMNS
• FOR ADDING OR REMOVING THE CONSTRAINTS
• FOR RENAMING THE COLUMN OR TABLES
• FOR MODIFYING THE DATATYPE OR THERE LENGTH
•ETC.
4. TRUNCATE-- TO DELETE (DEL) the WHOLE RECORDS OR DATA OF A TABLE AT A TIME WITHOUT DELETING THE STRUCTURE OF A TABLE OR A COLUMNS.
answered Feb 23, 2021 by anonymous

edited Mar 5
0 votes
State commands that come under ddl
answered Mar 20, 2022 by anonymous

edited Mar 5

Related Questions In Database

0 votes
2 answers

Advantages and Disadvantages of Stored Procedure

https://www.quora.com/What-are-the-advantages-of-using-an-SQL-store ...READ MORE

answered Apr 29, 2019 in Database by anonymous
20,501 views
0 votes
1 answer

What are the ways of Data Import and Export in MySQL Workbench?

There are majorly three ways to export ...READ MORE

answered Dec 14, 2018 in Database by DataKing99
• 8,250 points
2,523 views
0 votes
1 answer

Query to list number of records in each table in a database

Use the below code to list number of ...READ MORE

answered Oct 11, 2019 in Database by Omaiz
• 560 points
1,538 views
0 votes
1 answer

How to calculate age (in years) based on Date of Birth and getDate()

Following can be a solution to your ...READ MORE

answered Feb 23, 2022 in Database by Vaani
• 7,070 points
1,717 views
0 votes
1 answer

What are DDL and DML?

SQL Commands have subcategories like DDL, DML, DCL ...READ MORE

answered Feb 8, 2022 in Database by Vaani
• 7,070 points
1,054 views
0 votes
1 answer

What is DDL interpreter?

DDL Interpreter interprets the DDL statements and ...READ MORE

answered Nov 8, 2018 in Database by DataKing99
• 8,250 points
5,775 views
0 votes
1 answer

What are DDL and DML?

DDL DML DDL stands for Data Definition Language. DML stands ...READ MORE

answered Jun 1, 2022 in Others by Sohail
• 3,040 points
1,436 views
0 votes
0 answers

What are DDL and DML?

What are they and how do they ...READ MORE

Jun 9, 2022 in Others by polo
• 1,480 points
569 views
0 votes
1 answer

List all the types of user-defined functions

There are three types of user-defined functions, ...READ MORE

answered Oct 29, 2018 in Database by Sahiti
• 6,370 points
2,379 views
0 votes
1 answer

What do ‘Record’, ‘Field’ and ‘Table’ mean in terms of a database?

Record is the collection of fields, possibly ...READ MORE

answered Oct 6, 2021 in Database by Adebayo fikayo

edited Mar 5 22,487 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP