ResultSet.wasNull Method
Reports whether the last column read has the value SQL NULL.
Syntax
public boolean wasNull(int ColumnID)
Run On
Called
Parameters
- ColumnID
Type: int
The column ID.
Return Value
Type: boolean
true if the last column read has the value SQL nullNothingnullptrunita null reference (Nothing in Visual Basic); otherwise false.
Remarks
You must first call a get method, like the ResultSet.getInt method, on a column to try to read its value; then call the wasNull method to find whether the value was the SQL NULL.