A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Can I set a column value in ResultSet and return
Joined: May 26, 2008
Feb 05, 2009 05:59:45
Can I modify the RESULTSET?
i.e. IF i Have one query Say
select to_clob(sis_rec_1) || to_clob(sis_rec_2 ) ||to_clob( sis_rec_3) from response
and It retuns me a column of type Clob.
If I want a
values instead of the Clob; then is it possible for me to get the same.
Thanks in advance.
Joined: May 26, 2003
Feb 05, 2009 18:26:26
You can read the CLOB via an AsciiStream and store it in a string.
[edited to fix typo]
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
Joined: Feb 04, 2009
Feb 06, 2009 04:13:45
Patil, you can update the resultset and store the same in DB using ResultSet.updateXxxx() functionalities.
Or else, if you wish to store the clob values in a bean in a String form, you can do so by calling
someBean.setSisRec("ResultSet objects holding the column values");
It is sorta covered in the
JavaRanch Style Guide
subject: Can I set a column value in ResultSet and return
use of CLOB,help me.
How to register a Clob in the dataBase
lazy loading clob column
Question on update CLOB column when the column value is null
Converting a String to Clob for insert into DB
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013