| oracle to_date vs mysql date_format -
06-04-2007, 07:58 AM
Hello,
Try to migrate a subset of data from Oracle 9i to mysql 5.0. The mysql
migration toolkit does not seem to allow me to snarf a subset of a
table.
So I am doing an export from Oracle 91 which creates sql insert
statements.
These insert statements contain to_date('16-MAY-07','DD-MON-RR'), for
example. So I plan to do a search and replace in the sql file using
date_format instead of to_date.
but I have only succeeded in getting NULL as a result of p***ing in
date_format( '16-MAY-07', %d %M %y). the format string is always 'DD-
MON-RR' could someone advise on the correct date_format incantation
is? It is suppsoed to be all working tomorrow and I have to leave now
after an 11 hour day!
TIA
Ton |