0% found this document useful (0 votes)
13 views7 pages

Batch 18: Paruchuri Supraja

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views7 pages

Batch 18: Paruchuri Supraja

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

BATCH 18

PRESENTED BY

paruchuri supraja
INTRODUCTION OF
SQL
 SQL (Structured Query Language) is a programming language which is used to
manage data stored in relational databases like MySQL, MS Access, SQL Server,
Oracle, etc.
 SQL allows the user to Create, Retrieve, Alter and transfer the information among
the database.

 Database -
A database is an organized collection of structured information, or data, typically
stored electronically in a computer system. A database is usually controlled by a
database management system (DBMS).
COMPONENTS OF SQL
DDL(Data definition language):

 CREATE: This command is used to create the database or its objects (like table, index,
function, views, store procedure, and triggers).
 DROP: This command is used to delete objects from the database.
 ALTER: This is used to alter the structure of the database.
 TRUNCATE: This is used to remove all records from a table, including all spaces
allocated for the records are removed.
 COMMENT: This is used to add comments to the data dictionary.
 RENAME: This is used to rename an object existing in the database.
DML(Data Manipulation Language):

 INSERT: It is used to insert data into a table.


 UPDATE: It is used to update existing data within a table.
 DELETE: It is used to delete records from a database table.
 LOCK: Table control concurrency.
DCL (Data Control Language):

 GRANT: This command gives users access privileges to the database.


 REVOKE: This command withdraws the user’s access privileges given by using the
GRANT command.
 TCL (Transaction Control Language):

 COMMIT: Commits a Transaction.


 ROLLBACK: Rollbacks a transaction in case of any error occurs.
 SAVEPOINT: Sets a save point within a transaction.

You might also like