1,添加表字段
alter table table1 add ptel varchar(100) not Null;
alter table table1 add id int unsigned not Null auto_increment primary key;
alter table table1 add tj int(1) not Nul default '1';
2,修改表字段
alter table 表名稱 change 字段名稱 字段名稱 字段類型 [是否允許非空];
alter table 表名稱 modify 字段名稱 字段類型 [是否允許非空];
alter table 表名稱 modify 字段名稱 字段類型 [是否允許非空];
3,刪除表字段
alter table table1 drop 字段名
上述來自玖樂網絡(96net.com.cn)