SQL allows users to access and manipulate data within a database. It includes statements for data definition, data manipulation, data control, and transaction control. A schema defines database objects like tables and views and is associated with a username and password for access.
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 ratings0% found this document useful (0 votes)
31 views9 pages
SQL (Structured Query Language)
SQL allows users to access and manipulate data within a database. It includes statements for data definition, data manipulation, data control, and transaction control. A schema defines database objects like tables and views and is associated with a username and password for access.
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/ 9
SQL
(Structured Query Language)
• SQL allows you to access a database • SQL can execute queries, retrieve data, insert new records, delete records, update records in database Schema • A schema is a collection of database objects like tables, views • A schema is associated with a username and password SQL STATEMENTS • DDL(Data Definition Language) • DML(Data Manipulation Language) • DCL(Data Control Language) • Data Retrieval • TCL(Transaction Control Language) DDL(Data Definition Language) Setup, Change and remove data structures from tables. • CREATE • ALTER • DROP • RENAME • TRUNCATE DML(Data Manipulation Language) Enters new rows, changes existing rows and removes unwanted rows from tables in the database. • INSERT • UPDATE • DELETE DCL(Data Control Language) DCL mainly deals with the rights, permissions and other controls of the database system • GRANT • REVOKE Data Retrieval Retrieves data from the database • SELECT TCL(Transaction Control Language) Manage the changes made by DML statements. Changes to the data can be grouped together. • COMMIT • ROLLBACK • SAVEPOINT