alter table 表名 modify column 字段名 类型;
例如
数据库中user表 name字段是varchar(30)
可以用
alter table user modify column name varchar(50) ;
alter table userattribute modify sendthings varchar(2000);或者这样
转载于:https://blog.51cto.com/fghjk/919995
alter table 表名 modify column 字段名 类型;
例如
数据库中user表 name字段是varchar(30)
可以用
alter table user modify column name varchar(50) ;
alter table userattribute modify sendthings varchar(2000);或者这样
转载于:https://blog.51cto.com/fghjk/919995