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: SQL: How to select date by month and/or year

Re: SQL: How to select date by month and/or year

From: <edwards_at_garland.dnr.state.sc.us>
Date: 1997/05/06
Message-ID: <336F243F.167E@garland.dnr.state.sc.us>#1/1

raab_at_amsd3c.imib.rwth-aachen.de wrote:
>
> how can I perform a selection of a date-field by any single subfield (day, month, year ...). I tried
>
>select * from test_table where date_field like to_date('01', 'MM')

try this:

        select * from test_table where date_field like '01%'; Received on Tue May 06 1997 - 00:00:00 CDT

Original text of this message

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