Ddl vs dml

shahbazalishahbaz 516 views 15 slides Aug 26, 2018
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

Difference between DDL and DML in SQL


Slide Content

Presentation Topic DDL VS DML P resent B y Shahbaz Khan Lund Inayatullah Panhwar Faveed Ali Siyal Sayed Karamat Ali Shah

SQL SQL is a standardized query language for requesting information from a database. The original version called SEQUEL (structured English query language) was designed by an IBM research center in 1974 and 1975. SQL was first introduced as a commercial database system in 1979 by Oracle Corporation.

DDL (Data definition language) DDL stands for Data Definition Language. DDL statements are used to build and modify the structure of tables and other objects in the database.

CREATE :- This command simply means to create the table. ALTER :- It is used to modify the structure of an existing object. TRUNCATE :- It is used to delete all data from a table which is faster then delete. RENAME :- It is used to rename a database table. DROP :- It removes the entire table from the database. DDL provides the following statements to manipulate the object in database:-

Inayatullah Panhwar

DML (Data Manipulation language) DML (Data Manipulation Language). It is used for selecting, inserting, deleting and updating data in a database.

SELECT :-Select records from a table. UPDATE :- Update / Modify existing records. DELETE :- Delete existing records. INSERT :- Insert new records. DML provides the following statements to manipulate the object in database:-

Faveed Ali Siyal

Advantages of DML The DML statements can modify the data stored in a database. User can specify what data is needed. DML tends to have many different flavors and capabilities between database vendors. It provides efficient human interaction with the system.

Disadvantages of DML DML cannot be used to change the database structure. Tables or columns cannot be created or deleted using DML. View the data without storing the data into the object. Restrict the view of a table i.e. Can hide some of columns in the tables.

Sayyed Karamat Shah will do Practical Of DDL and DML statements .

Thank You