Computer Science, asked by riya2280, 1 year ago

\huge\mathfrak\blue{hello\:Mate!}What do u mean by DDL and DML​

Answers

Answered by ariestheracer
4

1. DDL: (DATA DEFINATION LANGUAGE) A data definition or data description language is a syntax similar to a computer programming language for defining data structures, especially database schemas. DDL statements create, modify, and remove database objects such as tables, indexes, and users. Common DDL statements are CREATE, ALTER, and DROP.

Examples of DDL commands:

CREATE – is used to create the database or its objects (like table, index, function, views, store procedure and triggers).

DROP – is used to delete objects from the database.

ALTER-is used to alter the structure of the database.

TRUNCATE–is used to remove all records from a table, including all spaces allocated for the records are removed.

COMMENT –is used to add comments to the data dictionary.

RENAME –is used to rename an object existing in the database.

2. DML: ( DATA MANUPLATION LANGUAGE) A data manipulation language is a computer programming language used for adding, deleting, and modifying data in a database. A DML is often a sublanguage of a broader database language such as SQL, with the DML comprising some of the operators in the language.

Examples of DML:

SELECT – is used to retrieve data from the a database.

INSERT – is used to insert data into a table.

UPDATE – is used to update existing data within a table.

DELETE – is used to delete records from a database table.


jaffer52: hi
jaffer52: ??
riya2280: hi
Answered by NeverMind11
0

DML statements are SQL statements that manipulate data. DML stands for Data Manipulation Language. The SQL statements that are in the DML class are INSERT, UPDATE and DELETE. Some people also lump the SELECT statement in the DML classification.

Data Definition Languages (DDL) are used to define the database structure. Any CREATE, DROP and ALTER commands are examples of DDL SQL statements.


NeverMind11: I hope this helps you
NeverMind11: i think it would not helped you
Similar questions