-- 修改表名
rename table old_table to new_table;
-- 或者
alter table old_table rename as new_table;
或者
alter table old_table rename to new_table;
-- 修改列名称
alter table table_name change column old_name new_name varchar(255);
比如:
alter table tb_employee change state emp_status varchar(12);//将state修改为emp_status 类型为varchar(12);