Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: insert clob into table
On Fri, 3 Mar 2006 23:13:30 +0800, mwojtow wrote
(in article <du9meq$sfo$1_at_kujawiak.man.lodz.pl>):
> steve <steve_at_aol.com> wrote: >> On Thu, 2 Mar 2006 22:10:23 +0800, amogh wrote >> (in article <4406F9FF.7030305_at_gmail.com>): >> >>> mwojtow wrote:
>>>>> (
>>> >>> You will have to first insert an empty clob. SELECT the clob >>> descriptor column and then UPDATE the clob. Take a look at the >>> occiclob.cpp sample here: >>> >>> >> http://www.oracle.com/technology/sample_code/tech/occi/files/ >> occi10gsamples.ta >> >>> r.gz >>> >>> Rgds. >>> Amogh >> >> the way i do it , is when i define the table, set the "default value" to >> empty_clob() >> >> that sets it up automatically. >> then you can just stuff your text in. > the problem exists if you cannot identify record you have just inserted. > my primary key is set automaticaly on server. after inserting I'm not > sure if somene else has not set another record into table so I cannot > just take the last record. and combination of fields is not unique! > but I solved it:) > I used setString on clob column and it seems to work:) thanks everyone > for advices.Received on Wed Mar 08 2006 - 17:04:55 CST
![]() |
![]() |