File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

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]
I agree. Here's the link:
subject: Strange problem help
It's not a secret anymore!