Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to define date column in a table with only mm/dd/yyyy por
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 Liststo: 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
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
![]() |
![]() |