แชร์ผ่าน


ResultSet.wasNull(Int32) Method

Definition

Reports whether the last column read has the value SQL NULL.

public:
 virtual bool wasNull(int _ColumnID);
public virtual bool wasNull (int _ColumnID);
abstract member wasNull : int -> bool
override this.wasNull : int -> bool
Public Overridable Function wasNull (_ColumnID As Integer) As Boolean

Parameters

_ColumnID
Int32

The column ID.

Returns

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.

Applies to