This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Strange problem help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Strange problem help" Watch "Strange problem help" New topic
Author

Strange problem help

adeeb alexander
Ranch Hand

Joined: May 29, 2008
Posts: 268
Hi all.
I want to retrieve a column from DB. I have done as usual, i don't get the output. Look at the code. I get the out put if i give the value directly in the query i.e('adeeb'). If i try to set the String using preparedStatement. There is no output



The code when i used to set the string is here:



Somebody please help me out i can't understand whats happening.


Thanks and regards
alexander
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3740
    
  10

It's a long shot, but it could be character encoding. In general, though, these two should return the same results I'd do some more general debugging. Grab a debug driver that outputs SQL queries and/or turn on query monitoring so that you can see what's being executed on the server.


[OCA 8 Book] [Blog]
 
Have you checked out Aspose?
 
subject: Strange problem help
 
It's not a secret anymore!