Basic operation of database
First, the operation of the database
1. Display the current database
show databases;
2. Create a database
create database 数据库名;
create database 数据库名 charset 字符集名;//以制定字符集创建数据库
3. Using the database
use 数据库名;
4. Delete the database
drop database 数据库名;
Second, the data type
1. Numeric type
2. String type
3. Date type
Third, the operation of the table
1. Create a table
create table 表名(数据类型);
2. View the table structure
desc 表名;
3. Delete table
drop table 表名;