Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Retrieve full string from oracle through jdbc

 
Ripul Chhabra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm facing problem while i'm retrieving string from oracle database.

By using resultset.getString("Address") it is retrieving only only first word of the resultset.

eg If oracle is having "Sectot-20, Noida, India" as "Address". It is only returing Sector-20 while it should return "Sector-20, Noida, India".

Kindly help me as soon as possible because i do require it in my project.

With Regards,
Ripul Chhabar
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That method returns everything in the field called "Address", so it should work Can you show us your code, and perhaps the DDL for the table?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic