Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the date format when the file is spooled in oracle

Tags:

sql

oracle

Currently i'm generating a export where the date format is actually dd/mm/yyyy but when i spool it and see it is coming as dd/mmm/yyyy in a readable format

For example if the date in my real file is 06/10/2014 in the spool it automatically is coming 06-Oct-2014. But i don't want this format. How to retain the original one?

like image 397
chikkada Avatar asked Nov 14 '14 07:11

chikkada


1 Answers

You can convert your date column to char representation before exporting

to_char(date_column, 'dd/mm/yyyy')
like image 105
Multisync Avatar answered Oct 11 '22 17:10

Multisync