Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Getting a Clob into a Long
The original question was about taking the value in a LOB column and
putting it in a LONG. If the value is more than 32K in size, there is no
way to do that using PL/SQL or SQL in Oracle. A program will need to be
written using OCI calls (or an interface to OCI calls - which I presume
is what Perl does) or Pro*C or another similar language.
It is possible in PL/SQL to RETRIEVE all the data in a LONG column, even if the data is more than 32K, but it is not possible to INSERT into a LONG column when the data is more than 32K.
-----Original Message-----
Jared Still
Ah well, it can be done directly with 100% PL/SQL.
You just need to convert the long via the to_log() function.
It does require that you use a global temporary table as an intermediary, but it can be done. =20
I'm citing from memory, so you best look at the to_lob() function in the SQL reference manual.
Of course, you could do it with Perl and DBI. It would=20 be quite a bit easier than PL/SQL, as it avoids the=20 intermediary table.
On Mon, 18 Oct 2004 18:16:28 -0400, Bobak, Mark
>=20
>=20
>=20 >=20
>=20
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Oct 19 2004 - 19:22:40 CDT
![]() |
![]() |