aspose file tools*
The moose likes JDBC and the fly likes Urgent help needed!  How to set NULL value to a binary field? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Urgent help needed!  How to set NULL value to a binary field?" Watch "Urgent help needed!  How to set NULL value to a binary field?" New topic
Author

Urgent help needed! How to set NULL value to a binary field?

liang gu
Ranch Hand

Joined: Nov 05, 2001
Posts: 89
I am calling a stored procedure in JDBC, and I need to set a IN binary field to the NULL value. How to do it? Will stmt.setBytes(null) work?
THANKS!
Liang
Branko Paskutini
Greenhorn

Joined: Apr 18, 2002
Posts: 25
Hi Liang, you can use PreparedStatement's method. PreparedStatement is superinterface to CallableStatement.
Branko.
 
wood burning stoves
 
subject: Urgent help needed! How to set NULL value to a binary field?