Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Date comparison question

Date comparison question

From: Lisa Yates <cosnit_at_creighton.edu>
Date: Mon, 8 Jan 2001 13:27:16 -0600 (CST)
Message-Id: <10735.126025@fatcity.com>


Why doesn't this query ever return...

where run_date = to_date('01-03-2001 16:34:59','mm-dd-yyyy hh24:mi:ss')

but this query does....

where to_char(run_date) = to_char(to_date('01-03-2001 16:34:59','mm-dd-yyyy hh24:mi:ss'))

and so does this query....

where to_char(run_date,'mm-dd-yyyy hh24:mi:ss') = '01-03-2001 16:34:59'

?

TIA Lisa   


Received on Mon Jan 08 2001 - 13:27:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US