2. • – Subset of SQL used to manipulate data in
databases
• – INSERT, DELETE, UPDATE statements
• – Subset of SQL used to describe database objects
• – CREATE, ALTER, DROP statements
• – Data types
3. • A data manipulation language (DML) is a family of syntax elements
similar to a computer programming .
• language used for selecting, inserting, deleting and updating data in
a database.
• A data definition language or data description language (DDL) is a
syntax similar to a computer programming language for defining
data structures, especially database objects.
4.
5.
6. • Syntax:
"Remove the Student from department":
• DELETE FROM Department
• WHERE DeptName = ‘Student’
7.
8. DATA DEFINITION LANGUAGE
(DDL)
• DDL statements are used to build and
modify the structure of your tables and
other objects in the database.
• it is used to specify a database scheme as
a set of definitions.
• the Data Definition Language (DDL)
allows you to create, alter, and delete
database objects.
9. • Syntax:
• CREATE TABLE <name> (
• <list of elements>
• To Delete
• DROP TABLE <name>;
• To Alter
• To ALTER TABLE <name> ADD <element>
10. statements are used to define the
database structure or object.
statements are used for managing data
within objects.