0% found this document useful (0 votes)
8 views

Introduction-to-SQL-Commands

Uploaded by

Sagar Saggi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Introduction-to-SQL-Commands

Uploaded by

Sagar Saggi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Introduction to SQL

Commands
SQL, or Structured Query Language, is a powerful programming language
used to manage and manipulate relational databases. It provides a
standardized way to create, modify, and query data, making it essential for
data-driven applications and business intelligence.
Data Definition Language (DDL)
CREATE ALTER DROP

The CREATE statement is used to The ALTER statement allows you to The DROP statement is used to delete
establish new database objects, such as modify the structure of existing database objects, permanently
tables, views, and indexes. database objects, like adding or removing them from the system.
removing columns.
Data Manipulation Language
(DML)

1 INSERT 2 UPDATE
The INSERT statement is used The UPDATE statement allows
to add new data records to a you to modify the values of
table. existing data records in a
table.

3 DELETE
The DELETE statement is used to remove data records from a table.
Data Query Language (DQL)
1 SELECT
The SELECT statement is used to retrieve data from a table or
a view.
Transaction Control Language
(TCL)
COMMIT ROLLBACK
The COMMIT statement is used The ROLLBACK statement is
to save changes made by a used to undo changes made by
transaction and make them a transaction and revert the
permanent. database to its previous state.

SAVEPOINT
The SAVEPOINT statement allows you to set a marker within a
transaction, enabling partial rollbacks.
Data Control Language (DCL)

GRANT REVOKE
The GRANT statement is used to The REVOKE statement is used to
provide users with specific remove previously granted
permissions and access rights to permissions and access rights from
database objects. users.

You might also like