mysql 字段修改汇总

--  增加

ALTER TABLE `gdm_nursing_patient` ADD COLUMN `due_date` date DEFAULT NULL COMMENT '名称' AFTER `busi_no`;

-- 删除

alter table gdm_nursing_patient drop column breakfast,drop column morning_extra,drop column lunch,drop column afternoon_extra,drop column dinner,drop column evening_extra;

-- 修改

alter table user MODIFY field VARCHAR(10); 

posted @ 2019-10-17 16:37  关键步就几步  阅读(266)  评论(0编辑  收藏  举报