1、首先对要操作的表添加一个新的column,类型为clob
alter table 表名 add 新字段名 clob;
2、然后将要修改的源字段的数据赋给新建的字段
update 表名 set 新字段名 = 原字段名;
3、将原来的字段删除
alter table 表名 drop column 原字段名;
4、把新添加的字段名称改为原先的字段名称
alter table 表名 rename column 新字段名 to 原字段名;
1、首先对要操作的表添加一个新的column,类型为clob
alter table 表名 add 新字段名 clob;
2、然后将要修改的源字段的数据赋给新建的字段
update 表名 set 新字段名 = 原字段名;
3、将原来的字段删除
alter table 表名 drop column 原字段名;
4、把新添加的字段名称改为原先的字段名称
alter table 表名 rename column 新字段名 to 原字段名;
转载于:https://my.oschina.net/u/1032870/blog/1624832