What are DDL and DML

0 votes
I have heard the terms DDL and DML in reference to databases, but I don't understand what they are.

What are they and how do they relate to SQL?
Feb 8, 2022 in Database by Neha
• 9,020 points
965 views

1 answer to this question.

0 votes

SQL Commands have subcategories like DDL, DML, DCL and TCL

DDL is defined as Data Definition Language : DDL is used to define data structures which deals with database descriptions.

For example, 

CREATE: It helps to create database 
ALTER : it helps to alter the pre-existing data
DROP: It helps to delete objects or data from the database
TRUNCATE: It remove all records from a table
COMMENT: It helps to add comments to the data dictionary.
RENAME : It helps to rename an object in the database


DML is defined by Data Manipulation Language to manipulate data itself with the following commands:

SELECT : it helps to retrieve data from one or more tables in the database
INSERT : it helps to insert data into a existing table
UPDATE : it helps to update existing data within a existing table
DELETE : it helps to delete all records from a table

answered Feb 8, 2022 by Vaani
• 7,070 points

Related Questions In Database

0 votes
1 answer

What is a Relationship and what are they?

Relation or links are between entities that ...READ MORE

answered Oct 23, 2018 in Database by DataKing99
• 8,250 points
760 views
0 votes
1 answer

What are VDL and SDL?

VDL(View Definition Language): Represents user views and ...READ MORE

answered Nov 13, 2018 in Database by DataKing99
• 8,250 points
10,432 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,318 views
0 votes
0 answers

What are Covering Indexes and Covered Queries in SQL Server?

Can you describe the ideas behind Covering ...READ MORE

Aug 21, 2022 in Database by Kithuzzz
• 38,000 points
504 views
+1 vote
2 answers

List few commands of DDL, DML, and DCL.

The list of commands is as follows:  Data ...READ MORE

answered Nov 12, 2018 in Database by Sahiti
• 6,370 points
120,197 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,236 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
462 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,640 points
1,912 views
0 votes
1 answer
0 votes
1 answer

What is the difference between SQL, PL-SQL and T-SQL?

SQL SQL is the standard language for relational ...READ MORE

answered Feb 16, 2022 in Database by Vaani
• 7,070 points
889 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