修改表结构

1,追加字段

alter table tablename add (column1 datatype [default value][null/not null],….);

2,修改字段

alter table tablename modify (column datatype [default value][null/not null],….);

3,删除字段

alter table tablename drop (column);

你可能感兴趣的:(修改表结构)