shahbazalishahbaz
516 views
15 slides
Aug 26, 2018
Slide 1 of 15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
About This Presentation
Difference between DDL and DML in SQL
Size: 303.08 KB
Language: en
Added: Aug 26, 2018
Slides: 15 pages
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 .