在MySQL数据库,如何修改字段名?

我的MySQL数据库有一个表,student,表中一个字段名physisc 被误打为physics,表中已有大量数据,不能删除重新建表,请问如何修改表中的字段名?我记得是用alter table 修改,但我不会用具体使用,请高人指点一下!多谢谢了!

在MySQL数据库修改字段名方法:

1、语句:alter table student change physics physisc char(10) not null。
2、其中char(10) not null是你physisc字段的create_definition。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2006-06-27
alter table student change physics physisc char(10) not null;
其中char(10) not null是你physisc字段的create_definition.本回答被提问者采纳
第2个回答  2012-10-01
纠结了, 难道physics写得不对?
相似回答