The MySQL DDL and DML

DDL (Data Definition Languages) statements : the database definition language used to create database tables, indexes, views, stored procedures, triggers, etc., commonly used statement keywords are: CREATE, ALTER, DROP, TRUNCATE , COMMENT, RENAME .

DML (Data Manipulation Language) statements : the data manipulation statements, used to query, add, update, delete, commonly used statement keywords are: SELECT, INSERT, UPDATE, DELETE , MERGE, CALL, EXPLAIN PLAN, LOCK TABLE, including versatility CRUD.

DCL (Data Control Language) statements : the data control statement, for authorization / revocation authority database and its fields (DCL is short name of Data Control Language which includes commands such as GRANT and mostly concerned with rights, permissions and other controls of the database system.). Keywords are commonly used statement: GRANT, REVOKE.

TCL (Transaction Control Language) statements : transaction control statements to control transactions, the statement commonly used keywords are: COMMIT, ROLLBACK, SAVEPOINT, SET TRANSACTION.

Guess you like

Origin www.cnblogs.com/leslie12956/p/11826779.html