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

Home -> Community -> Usenet -> c.d.o.misc -> Re: cf query - wanting to set nls date

Re: cf query - wanting to set nls date

From: Jim Kennedy <kennedy-downwithspammersfamily_at_attbi.net>
Date: Tue, 26 Jul 2005 21:17:47 -0700
Message-ID: <irydnRvlsdk0l3rfRVn-rg@comcast.com>

"mike" <hillmw_at_charter.net> wrote in message news:1122434157.087846.311050_at_f14g2000cwb.googlegroups.com...
> No they dont't. Neither
>
> select * from abc where to_date(mydate)='7/27/2005';
>
> or
>
> select * from abc where mydate=to_date('7/27/2005');
>
> work.
>
> You get an invalid month error.
>
> Mike
>

select * from abc where mydate=to_date('7/27/2005','mm/dd/yyyy');

Is the correct syntax.
Jim Received on Tue Jul 26 2005 - 23:17:47 CDT

Original text of this message

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