Oracle中Clob字段类型修改为Varchar2类型实例

--新建一个字段
alter table KQSERVER add temp VARCHAR2(2000);
--将原来字段数据赋值到新字段
update KQSERVER set temp=SERVER_IMG;
--删除原来字段
alter table KQSERVER drop column SERVER_IMG;
--重命名新字段为原字段
alter table KQSERVER rename column temp to SERVER_IMG;

猜你喜欢

转载自blog.csdn.net/joyksk/article/details/89188196