Linux 拨号vps windows公众号手机端

mysql怎么修改数据表的属性

lewis 7年前 (2018-11-25) 阅读数 7 #VPS/云服务器
文章标签 mysql

mysql中修改数据表属性的方法

1.将表中的myisam属性修改为utf8属性

alter table '表名' engine=myisam charset=utf8;

2.在表中添加一个GetewayId字段,类型为int,且不能为null

alter table 'test' Add column GatewayId int not null default 0

3.修改表中的birth字段,允许其为空

alter table expert_info change birth birth varchar(20) null;

版权声明

本文仅代表作者观点,不代表米安网络立场。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

热门