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,240 points
23,589 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,360 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

0 votes

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
• 160 points
Commit , Rollback , Savepoint are TCL (TRANSACTION CONTROL LANGUAGE) commands and DCL commands are  GRANT AND REVOKE

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
13,266 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,240 points
1,164 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
225 views
0 votes
1 answer

What is MSLAB and LZO?

MSLAB stands for Memstore-Local Allocation Buffer. Lempel-Ziv-Oberhumer (LZO) ...READ MORE

answered Jul 10, 2018 in Database by Data_Nerd
• 2,390 points
426 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,240 points
1,556 views
0 votes
1 answer

Is it possible to access Couchbase by terminal?

What you want to accomplish isn't possible ...READ MORE

answered Apr 29, 2018 in DevOps & Agile by DareDev
• 6,890 points
133 views
0 votes
1 answer

How to connect Java program to the MySQL database?

You can connect your Java code with ...READ MORE

answered May 11, 2018 in Java by Parth
• 4,630 points
563 views
0 votes
1 answer
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,360 points
108 views
0 votes
1 answer

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

You can refer to the following definitions ...READ MORE

answered Nov 12, 2018 in Database by Sahiti
• 6,360 points
2,560 views