MySQL中alter用法大全
1:删除列 alter table 【表名】 drop 【列名】 2:增加列 alter table 【表名】 add 【列名】 int not null comment '注释说明' 3:修改列的类型信息 alter table 【表名】...
1:删除列 alter table 【表名】 drop 【列名】 2:增加列 alter table 【表名】 add 【列名】 int not null comment '注释说明' 3:修改列的类型信息 alter table 【表名】...

在后台sql命令输入框里输入: ALTER TABLE `dede_archives` ADD `weight` int(10) NOT NULL DEFAULT '0';
在后台SQL运行器运行下面的语句,这样新建的栏目ID就从1开始了: ALTER TABLE `dede_arctype` AUTO_INCREMENT =1;