File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Mapping datatypes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JDBC
Reply Bookmark "Mapping datatypes" Watch "Mapping datatypes" New topic
Author

Mapping datatypes

Stefan Elfvinge
Ranch Hand

Joined: Oct 29, 2001
Posts: 52
In my SQL-Server I store dates, does anyone know the best type if I want this look: DD-MM-YY ?
If that isn't possible, I take it that you solve this through parsing in the java-code?
For instance, let's say that I'm using the type "datetime" type in SQL-Server, how do I map it into java? I would like to get it in a string so that I can parse it(if necessary) in the java-code.
Does anyone have the "best" answer???


Steffe
 
 
subject: Mapping datatypes
 
Threads others viewed
JDBC SQL Server
No Current Row in the ResultSet when Migrating from SQL 2000 to 2005
JDBC with MS SQL Server 2000
How to Delete Messages from Jboss Queue during jboss shut down?
Using Boolean in Callable Statments
IntelliJ Java IDE