Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: [Q] ORACLE date select problem?
Nothing looks incorrect with your statement. Why not try to select the =
date field and see if it in fact contains the date 21_JAN-98. during a =
sort operation the value 2 does come before 3.=20
ROR =AA=BF=AA
>>> leed_at_chele.cais.net 10/13/00 11:35AM >>>
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'. =20
Anyone can give me a hint?
Thanks
--=20
Please see the official ORACLE-L FAQ: http://www.orafaq.com=20
--=20
Author: L
INET: leed_at_chele.cais.net=20
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Oct 13 2000 - 10:40:12 CDT
![]() |
![]() |