I am trying to insert into varchar2 column from a long column. here is the below example, TEXT.TEXT_COL = VARCHAR2(4000)
and NOTE.TEXT_NOTE = LONG
.
INSERT INTO TEXT(ROW_ID, TEXT_COL)
SELECT 1, TEXT_NOTE FROM NOTE;
When i run the above sql i get error
SQL Error: ORA-00997: illegal use of LONG datatype
I used TO_LOB()
too, but still the same error.
Is there any function which simply coverts long
and put it in varchar2
. Let me know your thoughts.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…