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 -> R: how to format

R: how to format

From: C.A.M. <marcello.cremente_at_sysdata.it>
Date: Fri, 22 Oct 1999 10:02:23 +0200
Message-ID: <7up5m5$59qa$1@stargate1.inet.it>


try

SELECT to_char (...)
instead of
SELECT to_date(...)

<javanewbie_at_my-deja.com> wrote in message 7uovmc$b1c$1_at_nnrp1.deja.com...
> 1999-01-01 00:00:00.0
>
> String str2= "select TO_DATE('19990101','YYYYMMDD') from
> foreign_worker_master where " +
> " ( renewal_date > TO_DATE('19990701','YYYYMMDD') and renewal_date <
> TO_DATE('19990801','YYYYMMDD') ) " ;
>
>
> i want the select to return only the date , ie.
>
> 19990101
>
> instead of
>
> 1999-01-01 00:00:00.0
>
>
>
> Thanks anyway.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Fri Oct 22 1999 - 03:02:23 CDT

Original text of this message

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