Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Converting LONG to CLOB

Converting LONG to CLOB

From: Paul Taylor <paul.taylor_at_zen.co.uk>
Date: Wed, 04 Dec 2002 11:33:22 +0000
Message-ID: <ksoruuku5m9dtt0r1ldd0trjvi522ko3m5@4ax.com>


I want to convert a column from LONG to CLOB but I get an error:

ORA-22858: invalid alteration of datatype

I'm using Oracle 8.1.7 under Linux.

This is what I'm doing:

ALTER TABLE mytable MODIFY (longfield CLOB);

and the table is:

CREATE TABLE mytable(ID int, longfield LONG);

Then I tried creating a new column of type CLOB and attempted to copy the LONG into it but get the error:

ORA-00932: inconsistent datatypes

Here's what I'm doing:

UPDATE mytable SET clobfield = TO_LOB(longfield )

Can anyone help me out with these problems? Thanks. Received on Wed Dec 04 2002 - 05:33:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US