when i am fetching the result into a resultset, it is of length 32,i.e., EML followed by 29 white spaces.
Is there any settings in database or jdbc by which my query will return only 3 characters,i.e.,EML.
you need to PostRealCode - complete Java code to create and process the statement, not just the SQL query.
I'm getting three characters from this command in SQL Developer, so there must be something strange in what you're doing - or in your database. Both is possible.
When i got unexpected output from my code, i added the last line (sysout).After that i got the output as
i.e., EML followed by 29 spaces(total 32 chars)
i can trim() the result and use the string, but i want to know the reason of such unexpected behavior of oracle.
my jdk and oracle 9i both resides in SunOS 5.8
Tapas,
your code looks perfectly OK. There must be a problem either with the database, or with the JDBC driver you're using. Don't understand why this should be happening.
Oracle drivers have built-in tracing capability. Maybe you should try to use these tools. See documentation for Oracle's JDBC drivers.
You would be much easier to understand if you took that bucket off of your head. And that goes for the tiny ad too!