The difference and understanding of database DDL, DML and DCL

  • DML (data manipulation language): They are SELECT, UPDATE, INSERT, DELETE, just like its name, these 4 commands are the language used to manipulate the data in the database 
  • DDL (data definition language): DDL is more than DML. The main commands are CREATE, ALTER, DROP, etc. DDL is mainly used to define or change the structure, data type, links and constraints between tables, etc. In the initialization work, they are mostly used when creating the table 
  • DCL (Data Control Language): is the database control function. It is a statement used to set or change database user or role permissions, including (grant, deny, revoke, etc.) statements. By default, only sysadmin, dbcreator, db_owner or db_securityadmin have the authority to execute DCL
  •  TCL - Transaction Control Language: transaction control language, COMMIT - save completed work, SAVEPOINT - set savepoint in transaction, you can roll back here, ROLLBACK - rollback, SET TRANSACTION - change transaction options

 

 

refer to:

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

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

3、https://blog.csdn.net/sinat_25059791/article/details/69666318

4、https://blog.csdn.net/level_level/article/details/4248685

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325339188&siteId=291194637