1. 建表:
creat table table_name(
column_name datatype,……
),
2.查看表结构
desc table_name
3. 向表中添加字段
alter table table_name add column_name datetype;
4. 修改字段类型
alter table table_name modify column_name datatype;
5. 删除字段:alter table table_name drop cloumn column_name;
6. 修改字段名:alter table table_name rename column column_name to new_name;
7. 修改表名: rename table_name to new_table_name;