• show databases; 列出所有数据库
    • create database <database-name>; 新建一个数据库
    • drop database test; 删除一个数据库
    • use test; 切换数据库
    • show tables; 查看当前数据库中的所有表
    • desc <table>; 查看表结构
    • show create table students; 查看创建表的 SQL 语句
    • drop table students; 删除表,创建表用 create table 语句
    • alter table students add column birth carchar(10) not null; 在表中新增一列 birth
    • alter table students change column birth birthday varchar(20) not null; 修改 birth
    • alter table students drop column birthday; 删除列