table of Contents
SQL language classification
The SQL language is divided into 4 categories:
- Data Query Language (DQL)
- Data Manipulation Language (DML)
- Data Definition Language (DDL)
- Data Control Language (DCL)
Data Query Language (DQL)
DQL is used to query data .
Contained operation statements:SELECT
Data Manipulation Language (DML)
DML is used to manipulate the data contained in database objects .
Contained operation statements:
INSERT
Insert dataUPDATE
change the dataDELETE
delete data
Data Definition Language (DDL)
DDL is used to manipulate the objects in the database and the objects themselves , including: databases, tables, views, indexes, synonyms, clusters, etc. ( DDL operations are submitted implicitly and cannot be Rollbacked )
Contained operation statements:
CREATE
Create objects such as databases and tablesDROP
Delete data tables, indexes, triggers, conditional constraints, and data table permissions, etc.ALTER
Modify data table definition and data attributes
Data Control Language (DCL)
DCL is used to grant or reclaim database object permissions, control the time and effect of database manipulation transactions, and monitor the database.
Contained operation statements:
GRANT
Assign permissions to usersREVOKE
Revoke the authority of a user in the databaseROLLBACK [WORK] TO [SAVEPOINT]
Back to a certain point