1.

How To Set A Parameter To Null?

Answer»

As you have learned within a DATABASE, the null value is a valid field value. Sometimes, depending on your database contents, you will want to set a parameter within a PREPARE statement to null There are TWO WAYS that you can do this. FIRST, you can pass null as an argument to any of the setx methods. The JDBC, in turn, will set the data field to null. Second, you can call the setNull method.

As you have learned within a database, the null value is a valid field value. Sometimes, depending on your database contents, you will want to set a parameter within a prepare statement to null There are two ways that you can do this. First, you can pass null as an argument to any of the setx methods. The JDBC, in turn, will set the data field to null. Second, you can call the setNull method.



Discussion

No Comment Found