SlideShare a Scribd company logo
5
Most read
6
Most read
15
Most read
1
STRUCTURED QUERY
LANGUAGE
1
WHAT IS
MYSQL…..?
MYSQL is a freely available
open source Relational
Database Management
System that uses Structured
Query Language(SQL).
1
KEY POINTS
Information is stored in tables.
Can store thousands of individual records.
Support a secure environment for storing ,
maintaining and accessing data.
Fast , reliable.
1
DATA
DEFINITION
LANGUAGE
(DDL)
DATA
MANIPULATION
LANGUAGE
(DML)
DATA
CONTROL
LANGUAGE
(DCL)
TRANSACTION
CONTROL
LANGUAGE
(TCL)
SQL
1
DDL
CREATE
ALTER
DROP
DML
INSERT
UPDATE
SELECT
DELETE
DCL
GRANT
REVOKE
TCL
COMMI
T
ROLL
BACK
SAVE
POINT
1
DDL – DATA DEFINITION LANGUAGE
STATEMENTS USED TO CREATE , ALTER,DROP DATABASES
PROJECTS.
-> CREATE: USED TO DEFINE NEW OBJECTS.
-> ALTER: USED TO MODIFY THE DEFINITION OF EXISTING
OBJECTS.
-> DROP: USED TO REMOVE EXISTING UNITS.
-> TRUNCATE TABLE : USED TO REMOVE ALL ROWS
FROM A TABLE WITHOUT LOGGING THE INDIVIDUAL ROW DELETIONS.
1
MYSQL Command line for create
command:
1
DATA DEFINITION
LANGUAGE
(DDL)
Commands that allow you to perform
tasks related to data definition.
Commands used are:
• Create : used to create table.
• Alter : used to add or remove
something from table.
• Drop : used to drop the database.
1
DATA MANIPULATION
LANGUAGE
(DML)
Commands that allow you to manipulate the
data stored in a database.
Commands used are:
• Insert : used to insert data in a table.
• Select : used to select data from table.
• Update : used to make changes in table.
• Delete : used to delete data from table or
the whole table.
1
MYSQL Command line for insert
command:
1
DML – DATA MANIPULATION LANGUAGE.
STATEMENTS USED TO RETRIVE , INSERT , UPDATE ,
REMOVE AND MANAGE DATA WITHIN DB OBJECTS.
-> SELECT : RETRIVES ONE OR MORE ROWS FROM A TABLE VIEW
- >INSERT : INSERT ONE OR MORE ROWS FROM A TABLE OR
VIEW.
->UPDATE : CHANGES EXISTING DATA IN A TABLE OR VIEW.
- >DELETE : REMOVES ONE OR MORE ROWS FROM A TABLE OR A
VIEW.
- >BULK INSERT : IMPORTS A DATA FILE INTO A DATABASES TABLE
OR VIEW IN A USER SPECIFIED FORMAT.
1
DATA CONTROL LANGUAGE
(DCL)
Commands used to control the data by
giving or taking back the privileges or
access.
Command used are:
• Grant : used to grant permission to
user for any task.
• Revoke : used to take back the
permission given to the user.
1
DCL – DATA CONTROL LANGUAGE
STATEMENTS USED TO CONTROL THE ACCESS OF DATA
STORED IN DATABASES AND PROVIDE DATA SECURITY.
-> GRANT : GRANTS PERMISSIONS ON A SECURABLE TO A
PRINCIPAL.
-> REVOKE : REMOVES A PREVIOUSLY GRANTED OR DENIED
PERMISSION.
->EXECUTE AS , STATEMENT : SETS THE EXECUTION CONTEXT OF
A SESSION.
-> EXECUTE AS, CLUASE : DEFINE THE EXECUTION CONTEXT OF
THE FOLLOWING USER DEFINED MOLECULES : FUNCTION
(EXCEPT INLINE TABLE – VALUED FUNCTIONS), PROCEDURES ,
QUEUES AND TRIGGERS.
1
TRANSACTION CONTROL
LANGUAGE
(TCL)Commands used for transaction control
purpose.
Commands used are:
• Commit : ends the current transaction and by
saving database changes and starts a new
transaction.
• Savepoint : defines breakpoints for
transaction to allow partial rollback.
• Rollback : ends the current transaction by
discarding database changes and starts a
new transaction.
1
TCL – TRANSACTION CONTROL LANGUAGE.
STATEMENTS USED TO MANAGE THE CHANGES MADE
BY DML STATEMENTS.IT ALLOWS STATEMENTS TO BE
GROUPED TOGETHER INTO LOGICAL TRANSACTION.
-> BEGIN TRANSACTION : MARKS THE STARTING POINT OF AN
EXCLIPT , LOCAL TRANSACTION INCREAMENTS @@ TRANCOUNT
BY 1.
-> COMMIT TRANSACTION : MARKS THE END OF A SUCCESSFUL
IMPLICT OR EXPLICT TRANSACTION.
-> ROLLBACK TRANSACTION : ROLLS BACK AN EXPLICT OR
IMPLICT TRANSACTION TO THE BEGINNING OF THE
TRANSACTION, OR TO SAVE POINT INSIDE THE TRANSACTION.
1
THANK YOU!
1

More Related Content

PPT
Sql Tutorials
PPTX
Chapter 1 introduction to sql server
PPTX
Presentation slides of Sequence Query Language (SQL)
PPT
Mysql
PDF
Chapter 4 Structured Query Language
PPT
MySql slides (ppt)
PDF
SQL - RDBMS Concepts
PPT
Working with Databases and MySQL
Sql Tutorials
Chapter 1 introduction to sql server
Presentation slides of Sequence Query Language (SQL)
Mysql
Chapter 4 Structured Query Language
MySql slides (ppt)
SQL - RDBMS Concepts
Working with Databases and MySQL

What's hot (20)

PPTX
SQL - Structured query language introduction
PPTX
SQL commands
PPTX
SQL - DML and DDL Commands
PPTX
SQL for interview
PPTX
introdution to SQL and SQL functions
PPTX
Basic sql Commands
PPTX
SQL Queries Information
PPTX
5. stored procedure and functions
PPTX
SQL Functions
PPT
Aggregate functions
PDF
SQL Overview
PPTX
Data Manipulation Language
PPT
Sql server T-sql basics ppt-3
PPTX
Sql clauses by Manan Pasricha
DOC
PPTX
pl/sql Procedure
PPTX
Procedure and Functions in pl/sql
PPTX
Introduction to database & sql
SQL - Structured query language introduction
SQL commands
SQL - DML and DDL Commands
SQL for interview
introdution to SQL and SQL functions
Basic sql Commands
SQL Queries Information
5. stored procedure and functions
SQL Functions
Aggregate functions
SQL Overview
Data Manipulation Language
Sql server T-sql basics ppt-3
Sql clauses by Manan Pasricha
pl/sql Procedure
Procedure and Functions in pl/sql
Introduction to database & sql
Ad

Similar to Sql and Sql commands (20)

PPTX
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
PDF
SQL_NOTES.pdf
PPTX
Database Management System PART- II.pptx
PDF
ppt.pdf
PPTX
An intoduction to sql and its components
PDF
sql all type of commands in this power point presentation
PDF
COMMANDS PPT(1).pdf
PPTX
Structured Query Language
PPTX
database language ppt.pptx
PPTX
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
PPTX
Sql queries
PPTX
Introduction to SQL.pptx
PPTX
Structured query language
PPT
Mysql Ppt
PPTX
SQLBasic to advance for the beggineers.pptx
PPTX
Database Languages.pptx
PDF
STRUCTURED QUERY LANGUAGE
PPTX
database management system: sql commands lab sql
PPTX
Database Management System (DBMS).pptx
My lablkxjlkxjcvlxkcjvlxckjvlxck ppt.pptx
SQL_NOTES.pdf
Database Management System PART- II.pptx
ppt.pdf
An intoduction to sql and its components
sql all type of commands in this power point presentation
COMMANDS PPT(1).pdf
Structured Query Language
database language ppt.pptx
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
Sql queries
Introduction to SQL.pptx
Structured query language
Mysql Ppt
SQLBasic to advance for the beggineers.pptx
Database Languages.pptx
STRUCTURED QUERY LANGUAGE
database management system: sql commands lab sql
Database Management System (DBMS).pptx
Ad

More from Knowledge Center Computer (20)

PDF
APS PGT Computer Science SylIabus
PPTX
Specialization and generalization quizz
PPTX
Data structure part 3
PPTX
Data structure part 4
PPTX
Data structure part 2
PPTX
Data structure part 1
PPTX
Computer architecture PART 2
PPTX
Computer architecture PART 1
PDF
Course design class 12 ip
PDF
CBSE 12 ip 2018 sample paper
PPTX
Programming languages java, python, sql and compare between c and python
PPTX
E commerce and types
PPTX
Android Operating System(OS)
PPTX
Networking Basic MCQ's TEST
PPTX
PDF
Information assistant exam complete syllabus 2018
PPTX
Computer fundamentals in hindi
PPTX
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 4
APS PGT Computer Science SylIabus
Specialization and generalization quizz
Data structure part 3
Data structure part 4
Data structure part 2
Data structure part 1
Computer architecture PART 2
Computer architecture PART 1
Course design class 12 ip
CBSE 12 ip 2018 sample paper
Programming languages java, python, sql and compare between c and python
E commerce and types
Android Operating System(OS)
Networking Basic MCQ's TEST
Information assistant exam complete syllabus 2018
Computer fundamentals in hindi
हिन्‍दी में मल्‍टीपल चॉइस कंप्यूटर साइंस क्विज Part 4

Recently uploaded (20)

PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Basic Mud Logging Guide for educational purpose
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Business Ethics Teaching Materials for college
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Classroom Observation Tools for Teachers
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Cell Types and Its function , kingdom of life
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Renaissance Architecture: A Journey from Faith to Humanism
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Basic Mud Logging Guide for educational purpose
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Pre independence Education in Inndia.pdf
Business Ethics Teaching Materials for college
O7-L3 Supply Chain Operations - ICLT Program
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPH.pptx obstetrics and gynecology in nursing
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Microbial diseases, their pathogenesis and prophylaxis
Classroom Observation Tools for Teachers
VCE English Exam - Section C Student Revision Booklet
Cell Types and Its function , kingdom of life
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
TR - Agricultural Crops Production NC III.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
human mycosis Human fungal infections are called human mycosis..pptx

Sql and Sql commands

  • 1. 1
  • 3. WHAT IS MYSQL…..? MYSQL is a freely available open source Relational Database Management System that uses Structured Query Language(SQL). 1
  • 4. KEY POINTS Information is stored in tables. Can store thousands of individual records. Support a secure environment for storing , maintaining and accessing data. Fast , reliable. 1
  • 7. DDL – DATA DEFINITION LANGUAGE STATEMENTS USED TO CREATE , ALTER,DROP DATABASES PROJECTS. -> CREATE: USED TO DEFINE NEW OBJECTS. -> ALTER: USED TO MODIFY THE DEFINITION OF EXISTING OBJECTS. -> DROP: USED TO REMOVE EXISTING UNITS. -> TRUNCATE TABLE : USED TO REMOVE ALL ROWS FROM A TABLE WITHOUT LOGGING THE INDIVIDUAL ROW DELETIONS. 1
  • 8. MYSQL Command line for create command: 1
  • 9. DATA DEFINITION LANGUAGE (DDL) Commands that allow you to perform tasks related to data definition. Commands used are: • Create : used to create table. • Alter : used to add or remove something from table. • Drop : used to drop the database. 1
  • 10. DATA MANIPULATION LANGUAGE (DML) Commands that allow you to manipulate the data stored in a database. Commands used are: • Insert : used to insert data in a table. • Select : used to select data from table. • Update : used to make changes in table. • Delete : used to delete data from table or the whole table. 1
  • 11. MYSQL Command line for insert command: 1
  • 12. DML – DATA MANIPULATION LANGUAGE. STATEMENTS USED TO RETRIVE , INSERT , UPDATE , REMOVE AND MANAGE DATA WITHIN DB OBJECTS. -> SELECT : RETRIVES ONE OR MORE ROWS FROM A TABLE VIEW - >INSERT : INSERT ONE OR MORE ROWS FROM A TABLE OR VIEW. ->UPDATE : CHANGES EXISTING DATA IN A TABLE OR VIEW. - >DELETE : REMOVES ONE OR MORE ROWS FROM A TABLE OR A VIEW. - >BULK INSERT : IMPORTS A DATA FILE INTO A DATABASES TABLE OR VIEW IN A USER SPECIFIED FORMAT. 1
  • 13. DATA CONTROL LANGUAGE (DCL) Commands used to control the data by giving or taking back the privileges or access. Command used are: • Grant : used to grant permission to user for any task. • Revoke : used to take back the permission given to the user. 1
  • 14. DCL – DATA CONTROL LANGUAGE STATEMENTS USED TO CONTROL THE ACCESS OF DATA STORED IN DATABASES AND PROVIDE DATA SECURITY. -> GRANT : GRANTS PERMISSIONS ON A SECURABLE TO A PRINCIPAL. -> REVOKE : REMOVES A PREVIOUSLY GRANTED OR DENIED PERMISSION. ->EXECUTE AS , STATEMENT : SETS THE EXECUTION CONTEXT OF A SESSION. -> EXECUTE AS, CLUASE : DEFINE THE EXECUTION CONTEXT OF THE FOLLOWING USER DEFINED MOLECULES : FUNCTION (EXCEPT INLINE TABLE – VALUED FUNCTIONS), PROCEDURES , QUEUES AND TRIGGERS. 1
  • 15. TRANSACTION CONTROL LANGUAGE (TCL)Commands used for transaction control purpose. Commands used are: • Commit : ends the current transaction and by saving database changes and starts a new transaction. • Savepoint : defines breakpoints for transaction to allow partial rollback. • Rollback : ends the current transaction by discarding database changes and starts a new transaction. 1
  • 16. TCL – TRANSACTION CONTROL LANGUAGE. STATEMENTS USED TO MANAGE THE CHANGES MADE BY DML STATEMENTS.IT ALLOWS STATEMENTS TO BE GROUPED TOGETHER INTO LOGICAL TRANSACTION. -> BEGIN TRANSACTION : MARKS THE STARTING POINT OF AN EXCLIPT , LOCAL TRANSACTION INCREAMENTS @@ TRANCOUNT BY 1. -> COMMIT TRANSACTION : MARKS THE END OF A SUCCESSFUL IMPLICT OR EXPLICT TRANSACTION. -> ROLLBACK TRANSACTION : ROLLS BACK AN EXPLICT OR IMPLICT TRANSACTION TO THE BEGINNING OF THE TRANSACTION, OR TO SAVE POINT INSIDE THE TRANSACTION. 1