一、数据库的增删改查
- 数据库的创造:creat database if not exists +数据库名称;
- 数据库的查询:show databases;
- 数据库的修改: alter database+数据库名称 character set +字符集名称;
- 数据库的删除:drop database if exists +数据库名称;
二、表的增删改查
- 表的创造:creat table +表名( 列名 数据类型);
- 表的查询:show tables;
- 表的修改: alter table 表名 rename to 新的表名
- 表的删除:drop table if exists +表名;