SlideShare a Scribd company logo
PPt on MY SQL basics and its types with examples
SQL commands are instructions. It is used to communicate
with the database. It is also used to perform specific tasks,
functions, and queries of data.
SQL can perform various tasks like create a table, add data to
tables, drop the table, modify the table, set permission for
users.
Types of SQL Commands:
There are five types of SQL commands: DDL, DML, DCL, TCL,
and DQL.
PPt on MY SQL basics and its types with examples
1. Data Definition Language (DDL)
DDL changes the structure of the table like creating a table, deleting a
table, altering a table, etc.
All the command of DDL are auto-committed that means it
permanently save all the changes in the database.
Here are some commands that come under DDL:
 CREATE
 ALTER
 DROP
 TRUNCATE
2. Data Manipulation Language(DML)
DML commands are used to modify the database. It is responsible
for all form of changes in the database.
The command of DML is not auto-committed that means it can't
permanently save all the changes in the database. They can be
rollback.
Here are some commands that come under DML:
•INSERT
•UPDATE
•DELETE
3. Data Control Language(DCL)
DCL commands are used to grant and take back authority from any
database user.
Here are some commands that come under DCL:
•Grant
•Revoke
4. Transaction Control Language
TCL commands can only use with DML commands like INSERT,
DELETE and UPDATE only.
Here are some commands that come under TCL:
•COMMIT
•ROLLBACK
•SAVEPOINT
THANK YOU

More Related Content

Similar to PPt on MY SQL basics and its types with examples (20)

PPTX
Himani uppal-221302130 WP ppt.pptx
MohitYadav889220
 
DOCX
ii bcom dbms SQL Commands.docx
lakshmi77
 
PPTX
Introduction to SQL.pptx
shubhidas
 
PPT
Introduction to SQL
Tayyab Hussain
 
PPTX
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
PDF
Structures query language ___PPT (1).pdf
tipurple7989
 
PPTX
Lecture 9 (Week 8) - Structured Query Language (SQL).pptx
motivationalvideos54
 
PPTX
database management system: sql commands lab sql
trapeziumtrapezoid12
 
PPTX
Using Basic Structured Query Language lo1.pptx
TsedaleBayabil
 
PPTX
SQL_Commands_Presentationdatabasemanagement system.pptx
pofec99113
 
PPTX
Introduction to database and sql fir beginers
reshmi30
 
PDF
ppt.pdf
BrahmamKolli
 
PPTX
SQL Introduction.pptx
RUBAB79
 
PPTX
SQL commands powerpoint presentation. Ppt
umadevikakarlapudi
 
PPTX
Structured Query Language
Surkhab Shelly
 
PPTX
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
PPTX
An intoduction to sql and its components
Monika Jain DAIMSR
 
PDF
sql all type of commands in this power point presentation
BrahmamKolli
 
PDF
COMMANDS PPT(1).pdf
BrahmamKolli
 
PPTX
Introduction to SQL for beginners - Beginner Guide
nudz27
 
Himani uppal-221302130 WP ppt.pptx
MohitYadav889220
 
ii bcom dbms SQL Commands.docx
lakshmi77
 
Introduction to SQL.pptx
shubhidas
 
Introduction to SQL
Tayyab Hussain
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
Structures query language ___PPT (1).pdf
tipurple7989
 
Lecture 9 (Week 8) - Structured Query Language (SQL).pptx
motivationalvideos54
 
database management system: sql commands lab sql
trapeziumtrapezoid12
 
Using Basic Structured Query Language lo1.pptx
TsedaleBayabil
 
SQL_Commands_Presentationdatabasemanagement system.pptx
pofec99113
 
Introduction to database and sql fir beginers
reshmi30
 
ppt.pdf
BrahmamKolli
 
SQL Introduction.pptx
RUBAB79
 
SQL commands powerpoint presentation. Ppt
umadevikakarlapudi
 
Structured Query Language
Surkhab Shelly
 
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
EliasPetros
 
An intoduction to sql and its components
Monika Jain DAIMSR
 
sql all type of commands in this power point presentation
BrahmamKolli
 
COMMANDS PPT(1).pdf
BrahmamKolli
 
Introduction to SQL for beginners - Beginner Guide
nudz27
 

Recently uploaded (20)

PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
PPTX
Controller Request and Response in Odoo18
Celine George
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PDF
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PDF
Council of Chalcedon Re-Examined
Smiling Lungs
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
care of patient with elimination needs.pptx
Rekhanjali Gupta
 
Controller Request and Response in Odoo18
Celine George
 
Introduction presentation of the patentbutler tool
MIPLM
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
QNL June Edition hosted by Pragya the official Quiz Club of the University of...
Pragya - UEM Kolkata Quiz Club
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Council of Chalcedon Re-Examined
Smiling Lungs
 
infertility, types,causes, impact, and management
Ritu480198
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Difference between write and update in odoo 18
Celine George
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Horarios de distribución de agua en julio
pegazohn1978
 
Ad

PPt on MY SQL basics and its types with examples

  • 2. SQL commands are instructions. It is used to communicate with the database. It is also used to perform specific tasks, functions, and queries of data. SQL can perform various tasks like create a table, add data to tables, drop the table, modify the table, set permission for users. Types of SQL Commands: There are five types of SQL commands: DDL, DML, DCL, TCL, and DQL.
  • 4. 1. Data Definition Language (DDL) DDL changes the structure of the table like creating a table, deleting a table, altering a table, etc. All the command of DDL are auto-committed that means it permanently save all the changes in the database. Here are some commands that come under DDL:  CREATE  ALTER  DROP  TRUNCATE
  • 5. 2. Data Manipulation Language(DML) DML commands are used to modify the database. It is responsible for all form of changes in the database. The command of DML is not auto-committed that means it can't permanently save all the changes in the database. They can be rollback. Here are some commands that come under DML: •INSERT •UPDATE •DELETE
  • 6. 3. Data Control Language(DCL) DCL commands are used to grant and take back authority from any database user. Here are some commands that come under DCL: •Grant •Revoke 4. Transaction Control Language TCL commands can only use with DML commands like INSERT, DELETE and UPDATE only. Here are some commands that come under TCL: •COMMIT •ROLLBACK •SAVEPOINT