Re: Informix Exporting Date Problem..HELP!!!!
Posted in 1997
Pranil,
Try plain ol' sql:
unload to myfile
select col1,col2, year(datecol) || month(datecol) || day(datecol .....
from mytable
where ....
You may have to play with it. You could also unload the data and
use good ol' Unix utilities (you may see them disappear when you
move to NT) like sed and awk.
However, if you prefer a programming solution ......
Yours,
Nick
*********************************
Nick Nobbe, Library of Congress
NLS/BPH
mail: nnob@loc.gov
*********************************
On 28 Oct 1997, Pranil wrote:
> I am migrating a database from Informix to Oracle RDB but having problem with
> the date. I can upload date as yyyymmdd which I can then convert to DATE VMS,
> but the problem is extracting the data from Informix with the date as yyyymmdd
> eg. 19961031. How can I do this ??? Is there anyway in Informix I can do a
> select statement and have the date displayed in this format (I believe this is
> the ansi format) ?
>
> Please help.
> THanks,
>
> Pranil Singh.
>
>
>