8t修改字段的类型?

数据库:gbase8t问题:原来的列desc类型是TEXT类型,现在想换成lvarchar类型,语句如下:alter table customer modify(desc lvarchar(512));执行时报错信息如下:SQL 错误 [ErrorCode : -9633] [SQLState : IX000] : ALTER TABLE can not modify column (desc) type. Need a cast f...显示全部

数据库:gbase8t
问题:
原来的列desc类型是TEXT类型,现在想换成lvarchar类型,语句如下:
alter table customer modify(desc lvarchar(512));
执行时报错信息如下:
SQL 错误 [ErrorCode : -9633] [SQLState : IX000] : ALTER TABLE can not modify column (desc) type. Need a cast from the current type to the new type.
ALTER TABLE can not modify column (desc) type. Need a cast from the current type to the new type.

java.sql.SQLException

有大牛知道这个问题怎么解决吗?

收起
参与7

查看其它 1 个回答zhaojunyong的回答

zhaojunyongzhaojunyong软件开发工程师暂无

我的语句是:alter table customer modify(desc lvarchar(512));

软件开发 · 2019-04-03
浏览2096

回答者

zhaojunyong
软件开发工程师暂无
擅长领域: GBase 8t数据库

zhaojunyong 最近回答过的问题

回答状态

  • 发布时间:2019-04-03
  • 关注会员:2 人
  • 回答浏览:2096
  • X社区推广