INSERT INTO MyTable (Name,
Title, DateOfHire)
VALUES ('Jason',
'Programmer/Analyst', '1998-07-05');
fails. It worked fine
on SQL Server, and we thought we were coding
our system to be as portable
as possible, because we knew the Oracle
port was coming eventually.
Oracle, however, wants the date (by
deafult, I would assume) to
be like '05-July-1998'. To retrofit our
code would be an enormous
task, and we'd really rather not do that.
We can execute an ALTER SESSION
statement with every connect to the
server, but that's not a very
good solution either. How does one go
about getting Oracle to accept
a date in a yyyy-mm-dd format
permanently?
Note that the factory default
date format uses MON, not MONTH, which implies
that Oracle would expect JUL,
not JULY like you typed. However, as Oracle uses
some logic to try other formats
when the given one fails, July is bound to be
accepted as well.
Arjan.