直接从varchar2 修改为clob会报错,不让修改,可以先修改为Long类型,然后从Long修改为clob .
而且更改为long,必须是 ORA-01439: 要修改的資料欄必須是空的, 才可以變更資料庫
Using ALTER TABLE to Convert LONG Columns to LOB Columns
You can use the ALTER TABLE statement in SQL to convert a LONG column to a LOB column. To do so, use the following syntax:
For example, if you had a table that was created as follows:
then you can change the column long_col in table Long_tab to datatype CLOB using following ALTER TABLE statement:
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/35489/viewspace-85019/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/35489/viewspace-85019/
本文介绍如何在Oracle数据库中将LONG类型的字段安全地转换为CLOB类型。通过使用ALTER TABLE语句,先将LONG类型修改为另一种类型再转换为CLOB可以避免ORA-01439错误。
1900

被折叠的 条评论
为什么被折叠?



