MySQL数据库修改字段的长度

数据库版本:5.7.22

使用DDL语句:alter table 表名 modify 字段名 字符类型(长度)

例如:
alter table db2.admin modify password char(40);

 

posted @ 2019-03-23 17:01  LiShiChao  阅读(12707)  评论(0编辑  收藏  举报