A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Databases
»
JDBC
Author
Urgent help needed! How to set NULL value to a binary field?
liang gu
Ranch Hand
Joined: Nov 05, 2001
Posts: 89
posted
Nov 20, 2002 15:52:00
0
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
posted
Nov 20, 2002 22:56:00
0
Hi Liang, you can use
PreparedStatement
's
setNull()
method.
PreparedStatement
is superinterface to
CallableStatement
.
Branko.
I agree. Here's the link:
http://aspose.com/file-tools
subject: Urgent help needed! How to set NULL value to a binary field?
Similar Threads
how to set value of text field
insert null in FK field (set null in cmr field ) CMP 2.0
clear date with datetimepicker struts 2
remove null
how to get the value from the readonly field?????
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter