Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: [Q] ORACLE date select problem?
Check you NLS_DATE_FORMAT and make sure you have it set to DD-MON-RR (Based
on your format) and not DD-MON-YY. The RR causes it to respect the Y2K
issues. If you can't bounce the database to reset the parameter, I suggest
you alter your select to include 4 digit years.
-----Original Message-----
From: L [mailto:leed_at_chele.cais.net]
Sent: Friday, October 13, 2000 10:29 AM
To: oracle-l_at_fatcity.com; oracledba_at_quickdoc.co.uk
Subject: [Q] ORACLE date select problem?
On ORACLE 7.3.4 database, I tried to select date less than "31-DEC-96". the following statement does NOT work correctly:
select account_id, datestamp from table1 where to_char(datestamp,'DD-MON-YY') < '31-DEC-96';
It still print date like '21_JAN-98'.
Anyone can give me a hint?
Thanks
![]() |
![]() |