Set Null Using Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • abhishek20
    New Member
    • Apr 2009
    • 6

    Set Null Using Java

    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?
Working...