Forums Register Login

Can I set a column value in ResultSet and return

+Pie Number of slices to send: Send
Hi All,

Can I modify the RESULTSET?
i.e. IF i Have one query Say
and It retuns me a column of type Clob.
If I want a String values instead of the Clob; then is it possible for me to get the same.

Thanks in advance.
PP
+Pie Number of slices to send: Send
You can read the CLOB via an AsciiStream and store it in a string.

[edited to fix typo]
+Pie Number of slices to send: Send
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");
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1019 times.
Similar Threads
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
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:16:36.