#指定在哪个字段后面添加新字段 alter table table1 Add column 列名1 VARCHAR(字段长度) DEFAULT NULL COMMENT '字段描述' AFTERT 列名3; #不指定在哪个字段后面添加新字段 alter table table2 Add column 列名2 VARCHAR(字段长度) DEFAULT NULL COMMENT '字段描述'; #添加普通索引 alter table tablename add index indexname (columnlist) ; #删除索引 alter table tablename drop index indexname ;
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/227243.html原文链接:https://javaforall.net
