Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to retrive long data Types of oracle in java

 
Vetri Selvi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Michael Arnett
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Raja Shekhar
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic