MySQL中alter用法大全
发布于 2020-12-05
1:删除列 alter table 【表名】 drop 【列名】 2:增加列 alter table 【表名】 add 【列名】 int not null comment '注释说明' 3:修改列的类型信息 alter table 【表名】modify 【列名】 char(10) 4:重命名列 alter table 【表名】【列名称】【新列名】 5:重命名表 alte...
阅读(962)赞 (0)
发布于 2020-12-05
1:删除列 alter table 【表名】 drop 【列名】 2:增加列 alter table 【表名】 add 【列名】 int not null comment '注释说明' 3:修改列的类型信息 alter table 【表名】modify 【列名】 char(10) 4:重命名列 alter table 【表名】【列名称】【新列名】 5:重命名表 alte...
阅读(962)赞 (0)