介绍 使用sql语句为表添加新字段。 命令 alter table 表名 add 新字段名 数据类型; 例子 向a表中添加name字段,类型为varchar(255)。 alter table a add `name` varchar(255); 下面是执行添加有的表结构: