A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Mar 09, 2005
Jun 28, 2005 19:39:00
I have a huge text file which contains the emails and city .
There would be thousands of such records in the file .
I have uploaded the file into Oracle into a clob .
Now I want to read the clob and do some procesing for each line
i.e . : email,city
I want to get each line from the clob .
Could someone kindly point me to an example
Also what are the best practices while reading from clob ?
Thanks in advance ,
Joined: May 26, 2003
Jun 29, 2005 18:04:00
The easest way is to call getCharacterStream() on the Clob. That way you can deal with the result as a familiar reader object.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: reading clob
String -> MySQL CLOB
how to detect end of line
clob.setCharacterStream(1); Unsupported feature
effcient way to parse clob data
HL7 HAPI 1.0 Parser
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014