Created
April 19, 2011 18:13
-
-
Save slamotte/929111 to your computer and use it in GitHub Desktop.
Technique for changing a clob to varchar2 in Oracle without dropping/recreating table or altering column positions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alter table t add c2 varchar2(4000); | |
update t set c2 = c; | |
update t set c = null; | |
commit; | |
alter table t modify c long; | |
alter table t modify c clob; | |
update t set c = c2; | |
alter table t drop column c2; | |
commit; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment