mysql修改表字段属性类型

例如:
修改表expert_info中的字段birth,允许其为空
>alter table expert_info change birth birth varchar(20) null;
例如:
修改表user10中的字段test,不能为空,默认为123
ALTER TABLE user10 MODIFY test CHAR(32) NOT NULL DEFAULT '123';
原文地址:https://www.cnblogs.com/mr-wuxiansheng/p/6891940.html