gbase数据库更改字段类型
(2021-08-02 09:16:29)
标签:
gbase |
分类: 大数据 |
1.在“b”后边添加一个新字段“c”数据类型int(10)
alter table t add column c int(10) after
b;
2.“b”的值都给“c”
update t set c=b;
3.删掉“b”字段
alter table t drop column b;
4.再在“c”后边添加一个新字段“b”数据类型int(10)
alter table t add column b int(10) after
c;
5.“c”的值都给“b”
update t set b=c;、
6.删掉“c”字段
alter table t drop column c;
参考:https://blog.csdn.net/qq_34485930/article/details/80112110