|
Re: TO_CHAR problem ORA-01855 [message #180211 is a reply to message #180210] |
Fri, 30 June 2006 14:48 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
Why is this a Forms question?
It worked for me, but what is the purpose of this query? All you are doing is adding 2.5 hours to some time, yet you are only showing a DATE in the output. You should be using a format mask to show the time. It can also be simplified to a much shorter and easy to read calculation.
tstdb UID> show parameter nls
NAME TYPE VALUE
------------------------------------ ------- ------------------------------
nls_language string AMERICAN
nls_territory string AMERICA
tstdb UID> select to_char(to_date('10:00 AM','hh:mi am')+2.5/24,'hh:mi am')
from dual
/
TO_CHAR(TO_DATE('10:00AM','HH:MIAM')+2.5/24,'HH:MIAM')
------------------------------------------------------
12:30 pm
[Updated on: Fri, 30 June 2006 15:06] Report message to a moderator
|
|
|
|
|