Skip to Main Content

Oracle Forms

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01481 : invalid number format model

Amatu Allah Neveen EbrahimMar 2 2008 — edited Mar 3 2008
Hello

could u pls tell me how to subtract two times in format 'HH24:MI':
--------------------------------------------------------------------------------------------
SELECT Round(TO_CHAR(:p_Tmp_Outtime,'HH24:MI') - (TO_CHAR(:P_SH_END_TIME,'HH24:MI'))*24 ,2)
FROM DUAL ;
---------------------------------------------------------

i tried also :

SELECT Round(to_number(TO_CHAR(:p_Tmp_Outtime,'HH24:MI')) - to_number((TO_CHAR(:P_SH_END_TIME,'HH24:MI')))*24 ,2) times
FROM DUAL;

-----------------------------------------------------------------------------------------------------------

i am gettinjg the following ora ORA-01481 : invalid number format model
i can't do any test to the value returned from any table specially date or even from a dual table...!

----------------------------------------------------------------------------------------------------------------

Regards,

Abdetu..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 31 2008
Added on Mar 2 2008
6 comments
6,423 views