mysql 新增列 修改列 删除列

mysql修改表名,列名,列类型,添加表列,删除表列 

alter table test rename test1; --修改表名 

alter table test add  column name varchar(10); --添加表列 

alter table test drop  column name; --删除表列 

alter table test modify address char(10) --修改表列类型 
||alter table test change address address  char(40) 


alter table test change  column address address1 varchar(30)--修改表列名

猜你喜欢

转载自xxllg.iteye.com/blog/2424135