Mysql 常用命令

Mysql 常用命令


//修改 mysql 数据库 表结构命令
alter table c_company add `signature` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '公司签章' after REGISTRATION

//查看 表结构命令
show columns from c_company;

//查询 表创建语句

desc materiel_credit_enterprise_info;

//查询 表结构

show columns from materiel_credit_enterprise_info;

//修改 列类型注释

alter table materiel_credit_enterprise_info modify column approve_credit_limit decimal(20,2) comment '审批授信额度';

posted @ 2018-05-16 08:44  一只奋斗的猪  阅读(137)  评论(0编辑  收藏  举报