Four types of SQL classification DDL,DML,DCL,TCL

Source: Internet
Author: User

- Data Definition language objects used to define a database, such as tables, views, indexes, etc.
DDL does not require a commit.
CREATE
Alter
DROP
TRUNCATE
COMMENT
RENAME


DML - Data Manipulation Language Update, add and delete records in database tables such as UPDATE, INSERT, delete
Provided by the DBMS for use by a user or programmer to implement operations on data in a database.
DML is divided into two classes: interactive DML and embedded DML.
Depending on the level of the language, DML can be divided into procedural DML and non-procedural DML two species.
A commit is required.
SELECT
INSERT
UPDATE
DELETE
MERGE
Pager
EXPLAIN PLAN
LOCK TABLE

DCL (Data control problem) Data Control Language –data control language refers to setting user permissions and controlling transaction statements such as Grant,revoke,if... else,while, BEGIN TRANSACTION
Grant Authorization
REVOKE Cancel Authorization


DQL (data query problem) (¡ï ★) data Query Language –data query Languageselect




Four types of SQL classification DDL,DML,DCL,TCL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.