The difference and understanding of database DDL, DML and DCL

Source: Internet
Author: User
Tags rollback savepoint

    • DML (Data Manipulation language): They are select, UPDATE, INSERT, DELETE, just like its name, these 4 commands are the languages used to manipulate the data in the database
    • DDL (data Definition Language): DDL is more than DML, the main command has create, ALTER, drop, etc., DDL is mainly used in the definition or Change tables (table) structure, data types, table links and constraints, such as initialization work, Most of them use when building tables
    • DCL (Data Control Language): is a database control function. is a statement that is used to set or change permissions for a database user or role, including (Grant,deny,revoke, etc.) statements. By default, only people such as Sysadmin,dbcreator,db_owner or db_securityadmin have the power to execute the DCL
    • Tcl-transaction control Language: Transaction control Language, COMMIT-save completed work, SavePoint-set savepoint in transaction, can roll back here, ROLLBACK-rollback, set Transaction- Change transaction options

Reference:

1, http://blog.51cto.com/jim123/1979202

2, https://www.bysocket.com/?p=1174

3, 69666318

4, 4248685

The difference and understanding of database DDL, DML and DCL

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.