mysql 修改字段长度

mysql 修改字段长度

alter table news  modify column title varchar(130);

alter table 表名 modify column 字段名 类型;

如:news 表里的title  字段 原来长度是 100个字符,现长度要改成130个字符

alter table news modify column title varchar(130);

ok 了!

posted @ 2013-12-16 11:12  船到桥头  阅读(110383)  评论(0编辑  收藏  举报