Skip to Main Content

SQL & PL/SQL

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!

How to pass Null Dates

Mr.JondeeJun 24 2013 — edited Jul 10 2013

Hello, 

I am trying to pass null dates into my stored preocedure and I get the below oracle error.

 

exec firm_service_pkg.GET_HOLD (118,8450027 ,1 , 0 , null , null)

ORA -20008: ORA-20008: ORA-20008: ORA-20008: Invalid Input for {1} of {2}

ORA-06512: at "C12_EDB.ERROR_PKG", line 500

ORA-06512: at "C12_EDB.MI_ADE_SERVICE_PKG", line 7169

ORA-06512: at line 1

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

Here is a snippet of my code.

 

"AND T.trade_dt BETWEEN NVL(i_from_dt,null ) AND NVL(i_to_dt,null )"

How can i modify , thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2013
Added on Jun 24 2013
10 comments
2,175 views