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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to define date column in a table with only mm/dd/yyyy portion

Re: how to define date column in a table with only mm/dd/yyyy portion

From: Ruth Gramolini <rgramolini_at_tax.state.vt.us>
Date: Wed, 1 Nov 2000 10:22:50 -0500
Message-Id: <10667.120803@fatcity.com>


If you store it as format DATE it will contain time portion. If you only want to store date you store it as varchar2.

HTH,
Ruth
----- Original Message -----
From: "Rao, Maheswara" <Maheswara.Rao_at_Sungardp3.com> To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Tuesday, October 31, 2000 12:31 PM Subject: how to define date column in a table with only mm/dd/yyyy portion

> Hi All,
>
> I have table that contains a column - TRADE_DATE.
>
> This column should always contain only the date portion - mm/dd/yyyy. It
> SHOULD NOT contain time portion.
>
> Is there any way, I can define this column or can I use some kind of
> constraint clauses on this column? If yes, please tell me how to do this.
>
> TIA,
>
> Rao
>
>
> Maheswara.Rao_at_SunGardP3.com
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Rao, Maheswara
> INET: Maheswara.Rao_at_Sungardp3.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Wed Nov 01 2000 - 09:22:50 CST

Original text of this message

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