wood burning stoves
The moose likes JDBC and Relational Databases and the fly likes query in oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "query in oracle" Watch "query in oracle" New topic
Author

query in oracle

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
How to get a date format in (dd-MON-CCYY) by writing a query in oracle.

CC- Century


Thanks,
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 44040
    
  33
Surely you use the SimpleDateFormat class or the %T tags to format the data after retrieval from the database?
Paul Campbell
Ranch Hand

Joined: Oct 06, 2007
Posts: 338
or use TO_CHAR(column_with_date,"dd-mon-yyyy") in your query.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: query in oracle
 
It's not a secret anymore!