MySQL的操作(二)

给数据表增加字段 alter table 表名 add 类型 约束; alter table students add number int not null; 修改字段 只修改字段类型不修改字段名 alter table 表名 modify 字段名 类型 约束; alter table students modify number varchar(20) default ‘0’;; 修改字段名
相关文章
相关标签/搜索