File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
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.
author & internet detective
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]
OCA 8 book
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");
I agree. Here's the link:
subject: Can I set a column value in ResultSet and return
Question on update CLOB column when the column value is null
use of CLOB,help me.
Converting a String to Clob for insert into DB
How to register a Clob in the dataBase
lazy loading clob column
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015