tags:

views:

37

answers:

1

Is there an equivalent of (ADO.NET) DB.Null in JDBC? Or do I simply pass null in the parameter?

Particularly in the context of Mysql?

+2  A: 

You use PreparedStatement.setNull(). To set a parameter in a PreparedStatement object to null.

Gerco Dries