Cloud computing source framework learning course notes: Mysql source two

The following are learning about cloud computing course content source framework notes, here are details about the source of the second part of Mysql:

SQL statement classification:

SQL statements are divided into three categories

DDL statements

DDL data definition statements, is the object of an internal database to create, delete, modify, and other statements .create operation, drop, alter, etc. (DBA commonly used)

DML statements

DML is a data manipulation statements, refers to the basic operation of the database table record, insert, update, delete, select, etc. (common development)

DCL statement

DCL is a data control statement is used to control different segments of licensing and direct access levels statement. Define databases, tables, fields, user access rights and security levels, mainly grant, revoke, etc. (DBA commonly used)

The basic database operations

Additions and deletions to change search database

Library operations

Create a library

mysql > create database db1;

View Gallery

mysql > show databases;

mysql> show create database db1; // more detailed view of the library

Use the library

mysql > use db1;

Section '=' ';

Guess you like

Origin blog.51cto.com/14489558/2454985