-- 修改表名 ALTER TABLE 旧表名 RENAME AS 新表名
alter table student rename as student2
-- 增加表的字段 ALTER TABLE 表名 ADD 字段名 列属性(属性)
alter table student1 add age int(10)
-- 修改表的字段的属性用modify(修改约束) ALTER TABLE 表名 MODIFY 要改变字段名 改变后的属性
alter table student1 modify age varchar(10)
-- 修改表的字段和字段属性用change alter table student1 change age age1 int(6)
alter table student1 change age age1 int(6) -- 字段重命名
-- 删除表的字段 alter table 表名 drop 字段名
alter table student1 drop age1
-- 删除表:drop table [if exists] 表名
-- 注:所有的创建的删除尽量加上判断(if exists) 以免报错