Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Help with SQL statement and SUBSTR
On 30 Sep 2005 07:23:26 -0700, norcold1_at_yahoo.com wrote:
>I've alse tried date formats such as:
>TO_CHAR(PCH.INSERT_DATETIME,'MM-DD-YYYY HH24:MI:SS') > '09-29-2005
>00:00:00' and TO_CHAR(PCH.INSERT_DATETIME,'MM-DD-YYYY HH24:MI:SS') <
>'09-30-2005 00:00:00'
>
>'****
>
>What do I need to do differently? I imagine it might have something to
>do with the order in which Oracle is executing the statment.
The to_char is required around the hardcoded literal. The order of execution has nothing to do with it.
-- Sybrand Bakker, Senior Oracle DBAReceived on Fri Sep 30 2005 - 09:43:23 CDT
![]() |
![]() |