Connecting Tech Pros Worldwide Help | Site Map

Set Null Using Java

Newbie
 
Join Date: Apr 2009
Posts: 6
#1: May 7 '09
I want to insert a null value through a my java code using db2 stored procedure . However, when I set the input parameter using setNull() function of prepared statement the value getting inserted is "null" whereas in DB2 it should be blank or a “-”.
What is the way to achieve a blank or a “-” and not "null" for such a parameter?
Reply