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 por

RE: how to define date column in a table with only mm/dd/yyyy por

From: Rao, Maheswara <Maheswara.Rao_at_Sungardp3.com>
Date: Wed, 1 Nov 2000 15:34:55 -0500
Message-Id: <10667.120864@fatcity.com>


Thanks Diana, William Beilstein for taking your time to answer the question.

Now, I will be using TRUNC for updates and inserts into my TRADE table.

Maheswara.Rao_at_SunGardP3.com

-----Original Message-----

From: Diana Duncan [mailto:Diana_at_fileFRENZY.com] Sent: Wednesday, November 01, 2000 2:59 PM To: Multiple recipients of list ORACLE-L Subject: RE: how to define date column in a table with only mm/dd/yyyy por

It's because in your output statement you have dbms_output.put_line (to_char(d11, 'dd-MON-yyyy HH:MM'));

Instead of MM you should have MI -- MM is printing out the month number which is 10.

Truncating a date gives you the date at midnight, so you should be getting 12:00 in the time information after truncation.

HTH,
Diana

-----Original Message-----

Sent: Wednesday, November 01, 2000 12:01 PM To: Multiple recipients of list ORACLE-L por

QUESTION: The above program always is outputting the time portion as 12:10 in the time portion (example: 10-OCT-1999 12:10) Can anybody please explain to me the reason for this?

Thanks,

Rao

Maheswara.Rao_at_SunGardP3.com

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Diana Duncan
  INET: Diana_at_fileFRENZY.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 - 14:34:55 CST

Original text of this message

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