File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange string

 
zheng yu
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Linux + TOMCAT3.2.1 + ORACLE8.1.7
I have a field named TITLECODE , i defined it as VARCHAR2 . And then insert some tuples into DB. their TITLECODE Field is like '00123456' .
When i use JDBC API to access TITLECODE field , what i get is like "0x3030313233343536". As all you can see , it give me its ASCII code
i want to get field value like '00123456', how can i do that ? Is there some DB configuration problem
Thanx in advance
ZY
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic