Batch 18: Paruchuri Supraja
Batch 18: Paruchuri Supraja
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):