MySql notebook

1. Database (DDL, DML, DQL, DCL)

1. Database query language DQL
  1. Data query language DQL basic structure is a SELECT clause, FROM clause, WHERE clause
  2. Blocks of clause query:
    SELECT <table name field> from <table or view name> where <query>
2. Database Manipulation Language DML
  1. Database Manipulation Language There are three main forms:
    1. Insert INSERT
    2. Update Update
    3. delete delete
3. Data Definition Language DDL
  1. DDL data definition language used to create the various objects in the database ---- table, view, index, synonyms, and other such clusters: CREATE TABLE (table) / VIEW (view) / INDEX (index) / SYN (synonyms) / cLUSTER (cluster)
4. Data Control Language DCL

1. Data Control Language DCL used to grant a privilege to access the database or recovery, and to control the time and manipulate a database transaction effects occur, monitor the implementation of the database, such as:

  1. GRANT: Authorization
  2. ROLLBACK [WORK] TO [SAVEPOINT]: to return at some point
  3. Rollback -ROLLBACK
  4. COMMIT [WORK]: submitted
Published 18 original articles · won praise 15 · views 2786

Guess you like

Origin blog.csdn.net/qq_42768234/article/details/103569179