1 添加表列结构约束:
alter table wj_user add unique(name) ;
2 追加一条列的方法
alter table wj_user add passwordvarchar(22);
3 更改表结构的方法
alter table hib_user modify column id int auto_increment;
4 更改列名方法
alter table test rename test1; --修改表名
5 删除某一列的方法
ALTER TABLE wj_comment DROP COLUMN id