mysql增减字段-建索引视图常规操作

  1.   给表增加字段
1 alter table  t_other_data add data_item2 varchar(200) DEFAULT NULL COMMENT '数据项2';
2 alter table  t_other_data add data_item3 varchar(200) DEFAULT NULL COMMENT '数据项3';
3 alter table  t_other_data add reserve1 varchar(200) DEFAULT NULL COMMENT '预留字段1';
4 alter table  t_other_data add reserve2 varchar(200) DEFAULT NULL COMMENT '预留字段2';
5 alter table  t_other_data add reserve3 varchar(200) DEFAULT NULL COMMENT '预留字段3';
6 alter table  t_other_data add reserve4 varchar(200) DEFAULT NULL COMMENT '预留字段4';
7 alter table  t_other_data add reserve5 varchar(200) DEFAULT NULL COMMENT '预留字段5';
View Code

猜你喜欢

转载自www.cnblogs.com/s6-b/p/10824637.html