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

Home -> Community -> Usenet -> c.d.o.tools -> Re: [help me]Date Type

Re: [help me]Date Type

From: GHouck <hksys_at_teleport.com>
Date: 2000/06/02
Message-ID: <3938525A.3A7B@teleport.com>#1/1

richard wrote:
>
> I want to get to date type..
> I want to get to between data from 1990-01-01 to 1991-12-31.
> Example
> sql> desc s_emp;
> id number(7) not null,
> start_date date
>
> I did
> sql>select id,start_date
> sql>from s_emp
> sql>where start_date between 01-MON-90 and 31-DEC-91
>
> I unsuccess.
> help me .I hope to get to data from 1990/01/01 to 1991/12/31.
>
> please...

Try:

select id,start_date
from s_emp
where start_date between to_date('01-MON-90') and to_date('31-DEC-91')

[or]

select id,start_date
from s_emp
where start_date between '01-MON-90' and '31-DEC-91'

Yours,

Geoff Houck
systems hk
hksys_at_teleport.com
http://www.teleport.com/~hksys Received on Fri Jun 02 2000 - 00:00:00 CDT

Original text of this message

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