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

Home -> Community -> Usenet -> c.d.o.server -> Re: A beginner's question

Re: A beginner's question

From: Steve Blomeley <steveblomeley_at_yahooDOTco.uk>
Date: 2000/06/30
Message-ID: <395CE109.3F3A9FE@yahooDOTco.uk>#1/1

"Luis Auca ir" wrote:
>
 

> Hi!
>
 

> Is valid the next expression?:
>
 

> SELECT *
> FROM Customer
> WHERE TRUNC(SchedStart) = TRUNC(SYSDATE);
>
 

> or is better this?:
>
 

> SELECT *
> FROM Customer
> WHERE TO CHAR(SchedStart, 'DD-MM-YYYY') = TO CHAR(SYSDATE,
> 'DD-MM-YYYY');
>
 

> Thanks in advance,
> Luis Auca ir H.
> laucanir_at_hotmail.com

Luis,

The easiest way is probably :

SELECT *
FROM Customer
WHERE SchedStart LIKE SYSDATE ;

That works fine (as long as you don't mess with the NLS DATE FORMAT setting for your SQL session...)

Regards
Steve Received on Fri Jun 30 2000 - 00:00:00 CDT

Original text of this message

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