Think before you speak, read before you think.

mysql添加字段 更改 删除字段名

by

in

在 monitor 字段后添加 object_id 字段

alter table `url_monitor` add column object_id int not null default 0 after `monitor`;

字段名搞错,现在更改字段名,把 extr 改为 extra

alter table project_name change extr extra varchar(30);

更改字段的类型

alter table project_name modify extra varchar(10);

删除字段

alter table `my_crontable` drop `expression`;

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *