Forums Register Login

How to retrive long data Types of oracle in java

+Pie Number of slices to send: Send
Hi,
Any urgent help appreciated.
I have table which contains oracle Long data type.
using result set i am getting all the columns but I am not able to map any jdbc data type (getXXXXXX) to this Long data type.
Please let me know how to get long data type in jdbc program
thanks
Vetri selvi
+Pie Number of slices to send: Send
I am a Java newbie, but I believe that you can retrieve a long value from an oracle database into a java resultset, and then assign it to an InputStream variable. For example:
InputStream saveLong = rsOracle.getAsciiStream ( 1 );

might work.
-MLA
+Pie Number of slices to send: Send
Hi !!
Getting The Long Data...

LongData ... or any type of Data
Just try
rst.getString("columnname");
(OR)
just try
rst.getLong("columnname")

And Let me Know the Result..

Bye..
Hope this will Help U..

There were millions of the little blood suckers. But thanks to this tiny ad, I wasn't bitten once.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1659 times.
Similar Threads
How to get USE ORACLE LONG in java.
JDBC Type $ Driver
updating a Long column in Oracle thru JDBC deployed on a Weblogic 6.1 Server
getString() in ResultSet
Data size bigger than the max size for this type;
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:40:29.